1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-25 17:57:42 +03:00

s4:ntvfs/ipc: fix protocol specific processing of pipe names

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Mon May 28 21:48:47 CEST 2012 on sn-devel-104
This commit is contained in:
Stefan Metzmacher 2012-05-28 19:44:04 +02:00
parent ac4d23ebeb
commit e4c59a66aa

View File

@ -260,9 +260,15 @@ static NTSTATUS ipc_open(struct ntvfs_module_context *ntvfs,
case RAW_OPEN_NTCREATEX:
case RAW_OPEN_NTTRANS_CREATE:
fname = oi->ntcreatex.in.fname;
while (fname[0] == '\\') fname++;
break;
case RAW_OPEN_OPENX:
fname = oi->openx.in.fname;
while (fname[0] == '\\') fname++;
if (strncasecmp(fname, "PIPE\\", 5) != 0) {
return NT_STATUS_OBJECT_PATH_SYNTAX_BAD;
}
while (fname[0] == '\\') fname++;
break;
case RAW_OPEN_SMB2:
fname = oi->smb2.in.fname;
@ -284,8 +290,6 @@ static NTSTATUS ipc_open(struct ntvfs_module_context *ntvfs,
p = talloc(h, struct pipe_state);
NT_STATUS_HAVE_NO_MEMORY(p);
while (fname[0] == '\\') fname++;
/* check for valid characters in name */
fname = strlower_talloc(p, fname);