diff options
Diffstat (limited to 'src/shared/mkdir.c')
-rw-r--r-- | src/shared/mkdir.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/shared/mkdir.c b/src/shared/mkdir.c index dc400d9b91..73a3c4576f 100644 --- a/src/shared/mkdir.c +++ b/src/shared/mkdir.c @@ -44,10 +44,8 @@ int mkdir_safe_internal(const char *path, mode_t mode, uid_t uid, gid_t gid, mkd (st.st_mode & 0700) > (mode & 0700) || (uid != UID_INVALID && st.st_uid != uid) || (gid != GID_INVALID && st.st_gid != gid) || - !S_ISDIR(st.st_mode)) { - errno = EEXIST; - return -errno; - } + !S_ISDIR(st.st_mode)) + return -EEXIST; return 0; } |