database: require X_OK on parent directory, not R_OK
For accessing the child of a directory, one needs X_OK on the directory.
This commit is contained in:
parent
73f9e17951
commit
762712c756
@ -180,7 +180,7 @@ db_check(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Check if we can write to the directory */
|
/* Check if we can write to the directory */
|
||||||
if (access(dirPath, R_OK | W_OK)) {
|
if (access(dirPath, X_OK | W_OK)) {
|
||||||
g_warning("Can't create db file in \"%s\": %s",
|
g_warning("Can't create db file in \"%s\": %s",
|
||||||
dirPath, strerror(errno));
|
dirPath, strerror(errno));
|
||||||
g_free(dirPath);
|
g_free(dirPath);
|
||||||
|
Loading…
Reference in New Issue
Block a user