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

22 lines
737 B
Plaintext

$OpenBSD: patch-src_tracker-extract_tracker-extract-abw_c,v 1.6 2011/12/21 14:20:06 ajacoutot Exp $
https://bugzilla.gnome.org/show_bug.cgi?id=666654
--- src/tracker-extract/tracker-extract-abw.c.orig Mon Sep 26 11:26:39 2011
+++ src/tracker-extract/tracker-extract-abw.c Mon Sep 26 12:30:31 2011
@@ -180,10 +180,14 @@ tracker_extract_get_metadata (TrackerExtractInfo *info
f = tracker_extract_info_get_file (info);
filename = g_file_get_path (f);
+#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 abw file '%s': %s\n",