diff options
author | Volker Lendecke <vl@samba.org> | 2008-11-09 19:57:10 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2008-12-07 21:30:36 +0100 |
commit | e3eb94ef8ec820ad4155c5abb26528302ef7abf4 (patch) | |
tree | 6959c2756a62e775fc95da0229e5d9a8954af364 | |
parent | 1db7076b8e96eaf5046455b4d21a00f9636e4cd9 (diff) | |
download | samba-e3eb94ef8ec820ad4155c5abb26528302ef7abf4.tar.gz samba-e3eb94ef8ec820ad4155c5abb26528302ef7abf4.tar.bz2 samba-e3eb94ef8ec820ad4155c5abb26528302ef7abf4.zip |
Replace some pointless variables in reply_open_pipe_and_X by comments
-rw-r--r-- | source3/smbd/pipes.c | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/source3/smbd/pipes.c b/source3/smbd/pipes.c index 261f12cb08..faabdd795b 100644 --- a/source3/smbd/pipes.c +++ b/source3/smbd/pipes.c @@ -43,7 +43,6 @@ void reply_open_pipe_and_X(connection_struct *conn, struct smb_request *req) const char *fname = NULL; char *pipe_name = NULL; files_struct *fsp; - int size=0,fmode=0,mtime=0,rmode=0; TALLOC_CTX *ctx = talloc_tos(); NTSTATUS status; @@ -96,17 +95,12 @@ void reply_open_pipe_and_X(connection_struct *conn, struct smb_request *req) SSVAL(req->outbuf,smb_vwv9,2); SSVAL(req->outbuf,smb_vwv10,0xc700); - if (rmode == 2) { - DEBUG(4,("Resetting open result to open from create.\n")); - rmode = 1; - } - - SSVAL(req->outbuf,smb_vwv2, fsp->fnum); - SSVAL(req->outbuf,smb_vwv3,fmode); - srv_put_dos_date3((char *)req->outbuf,smb_vwv4,mtime); - SIVAL(req->outbuf,smb_vwv6,size); - SSVAL(req->outbuf,smb_vwv8,rmode); - SSVAL(req->outbuf,smb_vwv11,0x0001); + SSVAL(req->outbuf, smb_vwv2, fsp->fnum); + SSVAL(req->outbuf, smb_vwv3, 0); /* fmode */ + srv_put_dos_date3((char *)req->outbuf, smb_vwv4, 0); /* mtime */ + SIVAL(req->outbuf, smb_vwv6, 0); /* size */ + SSVAL(req->outbuf, smb_vwv8, 0); /* rmode */ + SSVAL(req->outbuf, smb_vwv11, 0x0001); chain_reply(req); return; |