git://wimlib.net
/
wimlib
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
file_writable(): Remove F_OK flag (redundant with W_OK)
[wimlib]
/
programs
/
imagex.c
diff --git
a/programs/imagex.c
b/programs/imagex.c
index 358e2d12a98801107350c81794f6466103eebc89..2a55a4e84be3db640831f7cc0be4c39d2c41cdef 100644
(file)
--- 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;