mirror of https://github.com/djcb/mu.git
* mu-util.c: fix _is_readable_dir
This commit is contained in:
parent
b48e44f7c9
commit
e3a834da74
|
@ -89,7 +89,7 @@ _is_readable_dir (const gchar* path)
|
||||||
struct stat statbuf;
|
struct stat statbuf;
|
||||||
|
|
||||||
return path &&
|
return path &&
|
||||||
access (path, F_OK) &&
|
access (path, R_OK) == 0 &&
|
||||||
stat (path, &statbuf) == 0 &&
|
stat (path, &statbuf) == 0 &&
|
||||||
S_ISDIR(statbuf.st_mode);
|
S_ISDIR(statbuf.st_mode);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue