From d069b8feece03aeccecbb2d0a466c0ac5377b63d Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Sun, 3 Mar 2013 13:54:48 -0600 Subject: [PATCH 1/1] file_writable(): Remove F_OK flag (redundant with W_OK) --- programs/imagex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.43.0