X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=programs%2Fimagex.c;h=2a55a4e84be3db640831f7cc0be4c39d2c41cdef;hp=358e2d12a98801107350c81794f6466103eebc89;hb=d069b8feece03aeccecbb2d0a466c0ac5377b63d;hpb=80224de6c2ff870ea36ff98b491223c674e4d57a 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;