19 lines
629 B
Plaintext
19 lines
629 B
Plaintext
$OpenBSD: patch-src_tracker-extract_tracker-extract-text_c,v 1.3 2011/10/21 14:26:56 ajacoutot Exp $
|
|
--- src/tracker-extract/tracker-extract-text.c.orig Thu Oct 20 17:37:11 2011
|
|
+++ src/tracker-extract/tracker-extract-text.c Fri Oct 21 15:22:12 2011
|
|
@@ -60,10 +60,14 @@ get_file_content (GFile *file,
|
|
/* Get filename from URI */
|
|
path = g_file_get_path (file);
|
|
|
|
+#if defined(__linux__)
|
|
fd = g_open (path, O_RDONLY | O_NOATIME, 0);
|
|
if (fd == -1 && errno == EPERM) {
|
|
fd = g_open (path, O_RDONLY, 0);
|
|
}
|
|
+#else
|
|
+ fd = g_open (path, O_RDONLY, 0);
|
|
+#endif
|
|
|
|
if (fd == -1) {
|
|
g_message ("Could not open file '%s': %s",
|