Commit 762712c7 authored by Max Kellermann's avatar Max Kellermann

database: require X_OK on parent directory, not R_OK

For accessing the child of a directory, one needs X_OK on the directory.
parent 73f9e179
...@@ -180,7 +180,7 @@ db_check(void) ...@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment