diff options
author | Stefan Metzmacher <metze@samba.org> | 2012-05-28 16:40:36 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2012-05-28 19:51:58 +0200 |
commit | e262db6c3173e977b08f1db37ae11e391246cc30 (patch) | |
tree | 6676b394514694c9310256a049326a0b7a41a798 /source3/smbd/nttrans.c | |
parent | 6777e345b1512345e8b74dfe0956982afc59895e (diff) | |
download | samba-e262db6c3173e977b08f1db37ae11e391246cc30.tar.gz samba-e262db6c3173e977b08f1db37ae11e391246cc30.tar.bz2 samba-e262db6c3173e977b08f1db37ae11e391246cc30.zip |
s3:smbd: only strip \\ off the name if present (for ntcreatex)
metze
Diffstat (limited to 'source3/smbd/nttrans.c')
-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)) { |