diff options
Diffstat (limited to 'source3/smbd/filename.c')
-rw-r--r-- | source3/smbd/filename.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source3/smbd/filename.c b/source3/smbd/filename.c index 3f02f6090f..44916200da 100644 --- a/source3/smbd/filename.c +++ b/source3/smbd/filename.c @@ -147,7 +147,12 @@ NTSTATUS unix_convert(connection_struct *conn, if (name[0] == '.' && (name[1] == '/' || name[1] == '\0')) { /* Start of pathname can't be "." only. */ - return NT_STATUS_OBJECT_NAME_INVALID; + if (name[1] == '\0' || name[2] == '\0') { + return NT_STATUS_OBJECT_NAME_INVALID; + } else { + /* Longer pathname starts with ./ */ + return NT_STATUS_OBJECT_PATH_NOT_FOUND; + } } /* |