s3:smbd: '|' isn't allowed in windows filenames
authorStefan Metzmacher <metze@samba.org>
Mon, 1 Dec 2008 21:01:09 +0000 (13:01 -0800)
committerJeremy Allison <jra@samba.org>
Mon, 1 Dec 2008 21:01:09 +0000 (13:01 -0800)
metze

source3/smbd/reply.c

index 1f99db2de46f2e9d699d5b7ac754f4a1554307b5..d23f9c106e38b9b2c266965b63e05cead865401b 100644 (file)
@@ -119,7 +119,7 @@ static NTSTATUS check_path_syntax_internal(char *path,
 
                if (!(*s & 0x80)) {
                        if (!posix_path) {
-                               if (*s <= 0x1f) {
+                               if (*s <= 0x1f || *s == '|') {
                                        return NT_STATUS_OBJECT_NAME_INVALID;
                                }
                                switch (*s) {