From 762712c756fe3041cc60cc4084ef505e56acf57c Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 8 Jul 2011 21:20:38 +0200 Subject: database: require X_OK on parent directory, not R_OK For accessing the child of a directory, one needs X_OK on the directory. --- src/database.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/database.c b/src/database.c index f255d6ca..9f29f95e 100644 --- a/src/database.c +++ b/src/database.c @@ -180,7 +180,7 @@ db_check(void) } /* 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", dirPath, strerror(errno)); g_free(dirPath); -- cgit v1.2.3