From e262db6c3173e977b08f1db37ae11e391246cc30 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 28 May 2012 16:40:36 +0200 Subject: s3:smbd: only strip \\ off the name if present (for ntcreatex) metze --- source3/smbd/nttrans.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source3') diff --git a/source3/smbd/nttrans.c b/source3/smbd/nttrans.c index 168ef56553..53e1713991 100644 --- a/source3/smbd/nttrans.c +++ b/source3/smbd/nttrans.c @@ -291,8 +291,10 @@ static void nt_open_pipe(char *fname, connection_struct *conn, DEBUG(4,("nt_open_pipe: Opening pipe %s.\n", fname)); - /* Strip \\ off the name. */ - fname++; + /* Strip \\ off the name if present. */ + while (fname[0] == '\\') { + fname++; + } status = open_np_file(req, fname, &fsp); if (!NT_STATUS_IS_OK(status)) { -- cgit