diff options
-rw-r--r-- | source3/smbd/nttrans.c | 6 |
1 files changed, 4 insertions, 2 deletions
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)) { |