Fix typo in check_path_syntax.
authorJeremy Allison <jra@samba.org>
Sat, 3 Apr 2004 00:04:31 +0000 (00:04 +0000)
committerJeremy Allison <jra@samba.org>
Sat, 3 Apr 2004 00:04:31 +0000 (00:04 +0000)
Jeremy.
(This used to be commit 018db85de4f380da9f8318ab72371185bb2ac5b4)

source3/smbd/reply.c

index 130601cd9c684c5e57e341449c67dbc1fd56ba08..7498821185ac701536903b3f01124a3cea458096 100644 (file)
@@ -100,7 +100,7 @@ NTSTATUS check_path_syntax(pstring destname, const pstring srcname)
                                d--;
                        }
                        s += 3;
-               } else if ((s[0] == '.') && (IS_DIRECTORY_SEP(s[1]) || s[2] == '\0')) {
+               } else if ((s[0] == '.') && (IS_DIRECTORY_SEP(s[1]) || (s[1] == '\0'))) {
 
                        /*
                         * No mb char starts with '.' so we're safe checking the directory separator here.