Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
treewide: use is_missing_file_error() where ENOENT and ENOTDIR are checked
[gitweb.git]
/
dir.c
diff --git
a/dir.c
b/dir.c
index aeeb5ce10490ef1e0adb907d1e21bcbbbbb401ac..98efe9d1c5d706bdaf12da508783006a4c882864 100644
(file)
--- a/
dir.c
+++ b/
dir.c
@@
-2235,7
+2235,7
@@
int remove_path(const char *name)
{
char *slash;
- if (unlink(name) &&
errno != ENOENT && errno != ENOTDIR
)
+ if (unlink(name) &&
!is_missing_file_error(errno)
)
return -1;
slash = strrchr(name, '/');