[tracker/tracker-0.10-no-atime: 22/23] tracker-extract, mp3: Also check for errno for fallback for open
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-0.10-no-atime: 22/23] tracker-extract, mp3: Also check for errno for fallback for open
- Date: Fri, 23 Sep 2011 11:05:31 +0000 (UTC)
commit b4d054c637aa5d295e8665fb3afb2b8084cb1c40
Author: Philip Van Hoof <philip codeminded be>
Date: Fri Sep 23 11:51:12 2011 +0200
tracker-extract, mp3: Also check for errno for fallback for open
src/tracker-extract/tracker-extract-mp3.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-mp3.c b/src/tracker-extract/tracker-extract-mp3.c
index 00a5ba5..fb27477 100644
--- a/src/tracker-extract/tracker-extract-mp3.c
+++ b/src/tracker-extract/tracker-extract-mp3.c
@@ -2103,7 +2103,7 @@ extract_mp3 (const gchar *uri,
* permissions.
*/
fd = g_open (filename, O_RDONLY | O_NOATIME);
- if (fd == -1) {
+ if (fd == -1 && errno == EPERM) {
fd = g_open (filename, O_RDONLY);
if (fd == -1) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]