[tracker/tracker-0.10-no-atime: 16/23] tracker-extract, abw: O_NOATIME requires owner to match, allow fallback
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-0.10-no-atime: 16/23] tracker-extract, abw: O_NOATIME requires owner to match, allow fallback
- Date: Fri, 23 Sep 2011 11:05:00 +0000 (UTC)
commit bd4ab02ecd6208e56f9f7a159222d8bed28e4fca
Author: Philip Van Hoof <philip codeminded be>
Date: Fri Sep 23 11:43:29 2011 +0200
tracker-extract, abw: O_NOATIME requires owner to match, allow fallback
src/tracker-extract/tracker-extract-abw.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-abw.c b/src/tracker-extract/tracker-extract-abw.c
index bd47144..bdbaaea 100644
--- a/src/tracker-extract/tracker-extract-abw.c
+++ b/src/tracker-extract/tracker-extract-abw.c
@@ -192,6 +192,9 @@ extract_abw (const gchar *uri,
}
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 abw file '%s': %s\n",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]