s3:smb2_create: do not remove leading backslash from pipe names
authorStefan Metzmacher <metze@samba.org>
Mon, 28 May 2012 13:25:53 +0000 (15:25 +0200)
committerStefan Metzmacher <metze@samba.org>
Mon, 28 May 2012 17:51:57 +0000 (19:51 +0200)
metze

source3/smbd/smb2_create.c

index 35be32823143595c07d59c444973b13890d2febe..b8ad3880d0ae949ed18d7e8e1c8bbac3354fbc4c 100644 (file)
@@ -477,11 +477,6 @@ static struct tevent_req *smbd_smb2_create_send(TALLOC_CTX *mem_ctx,
                        return tevent_req_post(req, ev);
                }
 
-               /* Strip \\ off the name. */
-               if (pipe_name[0] == '\\') {
-                       pipe_name++;
-               }
-
                status = open_np_file(smb1req, pipe_name, &result);
                if (!NT_STATUS_IS_OK(status)) {
                        tevent_req_nterror(req, status);