summaryrefslogtreecommitdiff
path: root/contrib/cvs/src/filesubr.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/cvs/src/filesubr.c')
-rw-r--r--contrib/cvs/src/filesubr.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/contrib/cvs/src/filesubr.c b/contrib/cvs/src/filesubr.c
index 028200536872..4b163e37b99d 100644
--- a/contrib/cvs/src/filesubr.c
+++ b/contrib/cvs/src/filesubr.c
@@ -335,8 +335,7 @@ mkdir_if_needed (name)
{
if (mkdir (name, 0777) < 0)
{
- if (!(errno == EEXIST
- || (errno == EACCES && isdir (name))))
+ if (errno != EEXIST && !isdir (name))
error (1, errno, "cannot make directory %s", name);
return 1;
}