openbsd-ports/x11/gnome/tracker/patches/patch-src_tracker-extract_tracker-extract-pdf_c
2011-12-21 14:20:06 +00:00

22 lines
743 B
Plaintext

$OpenBSD: patch-src_tracker-extract_tracker-extract-pdf_c,v 1.4 2011/12/21 14:20:06 ajacoutot Exp $
https://bugzilla.gnome.org/show_bug.cgi?id=666654
--- src/tracker-extract/tracker-extract-pdf.c.orig Fri Nov 25 15:50:33 2011
+++ src/tracker-extract/tracker-extract-pdf.c Fri Nov 25 18:52:47 2011
@@ -311,10 +311,14 @@ tracker_extract_get_metadata (TrackerExtractInfo *info
file = tracker_extract_info_get_file (info);
filename = g_file_get_path (file);
+#if defined(__linux__)
fd = g_open (filename, O_RDONLY | O_NOATIME, 0);
if (fd == -1 && errno == EPERM) {
fd = g_open (filename, O_RDONLY, 0);
}
+#else
+ fd = g_open (filename, O_RDONLY, 0);
+#endif
if (fd == -1) {
g_warning ("Could not open pdf file '%s': %s\n",