s3:smbd: '|' isn't allowed in windows filenames
authorStefan Metzmacher <metze@samba.org>
Mon, 24 Nov 2008 18:34:50 +0000 (19:34 +0100)
committerStefan Metzmacher <metze@samba.org>
Wed, 26 Nov 2008 22:02:20 +0000 (23:02 +0100)
metze

source/smbd/reply.c

index 9538a72e8d840baf10f42595c5c1d7b73903ed3e..e46479c98319abe89933eec8e2997d787d1f06e9 100644 (file)
@@ -121,7 +121,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) {