[tracker/tracker-0.12: 100/202] tracker-extract, gif: O_NOATIME requires owner to match, allow fallback
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-0.12: 100/202] tracker-extract, gif: O_NOATIME requires owner to match, allow fallback
- Date: Thu, 6 Oct 2011 17:56:51 +0000 (UTC)
commit 48ce7478e9e080e288f34a4ad40371e11262b468
Author: Philip Van Hoof <philip codeminded be>
Date: Fri Sep 23 11:46:54 2011 +0200
tracker-extract, gif: O_NOATIME requires owner to match, allow fallback
src/tracker-extract/tracker-extract-gif.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-gif.c b/src/tracker-extract/tracker-extract-gif.c
index 35ddcfb..d652dd1 100644
--- a/src/tracker-extract/tracker-extract-gif.c
+++ b/src/tracker-extract/tracker-extract-gif.c
@@ -607,6 +607,9 @@ tracker_extract_get_metadata (TrackerExtractInfo *info)
}
fd = g_open (filename, O_RDONLY | O_NOATIME, 0);
+ if (fd == -1 && errno == EPERM) {
+ fd = g_open (filename, O_RDONLY, 0);
+ }
if (fd == -1) {
g_warning ("Could not open gif file '%s': %s\n",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]