From e3a834da749babeaf603631b6147db63b01a2987 Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Wed, 9 Dec 2009 20:01:04 +0200 Subject: [PATCH] * mu-util.c: fix _is_readable_dir --- src/mu-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mu-util.c b/src/mu-util.c index 7e54eb41..39081560 100644 --- a/src/mu-util.c +++ b/src/mu-util.c @@ -89,7 +89,7 @@ _is_readable_dir (const gchar* path) struct stat statbuf; return path && - access (path, F_OK) && + access (path, R_OK) == 0 && stat (path, &statbuf) == 0 && S_ISDIR(statbuf.st_mode); }