From db44caf191157b5a223b6bb5f6636d6e530a69c9 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Sat, 3 Apr 2004 00:04:31 +0000 Subject: Fix typo in check_path_syntax. Jeremy. (This used to be commit 018db85de4f380da9f8318ab72371185bb2ac5b4) --- source3/smbd/reply.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/smbd/reply.c') diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index 130601cd9c..7498821185 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -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. -- cgit