From: Stefan Metzmacher Date: Mon, 1 Dec 2008 21:01:09 +0000 (-0800) Subject: s3:smbd: '|' isn't allowed in windows filenames X-Git-Tag: samba-4.0.0alpha6~480^2~45 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=49a8bd5e14fdb78197fc821fca72f0ba201f5f39;p=thirdparty%2Fsamba.git s3:smbd: '|' isn't allowed in windows filenames metze --- diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index 1f99db2de46..d23f9c106e3 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -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) {