diff options
-rw-r--r-- | source3/smbd/filename.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/smbd/filename.c b/source3/smbd/filename.c index 72b4ab7aa6..bcd8560ad9 100644 --- a/source3/smbd/filename.c +++ b/source3/smbd/filename.c @@ -524,12 +524,12 @@ NTSTATUS unix_convert(TALLOC_CTX *ctx, errno == ELOOP) { result = NT_STATUS_OBJECT_PATH_NOT_FOUND; - } - else { + goto fail; + } else if (errno != EACCES) { result = map_nt_error_from_unix(errno); + goto fail; } - goto fail; } /* |