mapper: check "x" permission on music directory
This is a common support case, and hopefully, the new error message will allow the user to understand the error without requiring support.
This commit is contained in:
parent
cead5e5bd7
commit
718e180423
1
NEWS
1
NEWS
@ -5,6 +5,7 @@ ver 0.16.6 (2010/??/??)
|
|||||||
- flac, null, wave: fix buffer corruption bug
|
- flac, null, wave: fix buffer corruption bug
|
||||||
- wave: support packed 24 bit samples
|
- wave: support packed 24 bit samples
|
||||||
* mapper: fix the bogus "not a directory" error message
|
* mapper: fix the bogus "not a directory" error message
|
||||||
|
* mapper: check "x" permission on music directory
|
||||||
* log: print reason for failure
|
* log: print reason for failure
|
||||||
* event_pipe: fix WIN32 regression
|
* event_pipe: fix WIN32 regression
|
||||||
* define WINVER in ./configure
|
* define WINVER in ./configure
|
||||||
|
@ -68,6 +68,14 @@ check_directory(const char *path)
|
|||||||
g_warning("Not a directory: %s", path);
|
g_warning("Not a directory: %s", path);
|
||||||
return;
|
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
|
static void
|
||||||
|
Loading…
Reference in New Issue
Block a user