aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS1
-rw-r--r--src/mapper.c8
2 files changed, 9 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index aa84dbede..223c39321 100644
--- a/NEWS
+++ b/NEWS
@@ -5,6 +5,7 @@ ver 0.16.6 (2010/??/??)
- flac, null, wave: fix buffer corruption bug
- wave: support packed 24 bit samples
* mapper: fix the bogus "not a directory" error message
+* mapper: check "x" permission on music directory
* log: print reason for failure
* event_pipe: fix WIN32 regression
* define WINVER in ./configure
diff --git a/src/mapper.c b/src/mapper.c
index 30d932f95..41ed6550b 100644
--- a/src/mapper.c
+++ b/src/mapper.c
@@ -68,6 +68,14 @@ check_directory(const char *path)
g_warning("Not a directory: %s", path);
return;
}
+
+#ifndef WIN32
+ char *x = g_build_filename(path, ".", NULL);
+ if (stat(x, &st) < 0 && errno == EACCES)
+ g_warning("No permission to traverse (\"execute\") directory: %s",
+ path);
+ g_free(x);
+#endif
}
static void