From: Eric Biggers Date: Sun, 3 Mar 2013 19:54:48 +0000 (-0600) Subject: file_writable(): Remove F_OK flag (redundant with W_OK) X-Git-Tag: v1.2.6~19 X-Git-Url: https://wimlib.net/git/?p=wimlib;a=commitdiff_plain;h=d069b8feece03aeccecbb2d0a466c0ac5377b63d;ds=sidebyside file_writable(): Remove F_OK flag (redundant with W_OK) --- diff --git a/programs/imagex.c b/programs/imagex.c index 358e2d12..2a55a4e8 100644 --- a/programs/imagex.c +++ b/programs/imagex.c @@ -318,7 +318,7 @@ out_fclose: static int file_writable(const char *path) { int ret; - ret = access(path, F_OK | W_OK); + ret = access(path, W_OK); if (ret != 0) imagex_error_with_errno("Can't modify `%s'", path); return ret;