Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'jc/noent-notdir'
[gitweb.git]
/
setup.c
diff --git
a/setup.c
b/setup.c
index e3f7699a902aed20a83820067cf913df2f3750a9..ba6e855178847a37044eacceae0ebcb17d8e990b 100644
(file)
--- a/
setup.c
+++ b/
setup.c
@@
-150,7
+150,7
@@
int check_filename(const char *prefix, const char *arg)
free(to_free);
return 1; /* file exists */
}
- if (
errno == ENOENT || errno == ENOTDIR
) {
+ if (
is_missing_file_error(errno)
) {
free(to_free);
return 0; /* file does not exist */
}