diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-11-04 13:15:22 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:05:29 -0500 |
commit | 39cd0639e9007bfd8b896b335aea50ace8631112 (patch) | |
tree | ecc909bc34527bc0e55148ea6169a100d1c9d4ed /source4/smb_server/reply.c | |
parent | 8fa7f264c62eca51868307796cdfd2dcc0abceff (diff) | |
download | samba-39cd0639e9007bfd8b896b335aea50ace8631112.tar.gz samba-39cd0639e9007bfd8b896b335aea50ace8631112.tar.bz2 samba-39cd0639e9007bfd8b896b335aea50ace8631112.zip |
r3531: add support for RAW_OPEN_MKNEW, RAW_OPEN_CREATE and RAW_OPEN_CTEMP in pvfs
(This used to be commit 1d2f0a55c1de01cbbf6552371584847223841bc3)
Diffstat (limited to 'source4/smb_server/reply.c')
-rw-r--r-- | source4/smb_server/reply.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source4/smb_server/reply.c b/source4/smb_server/reply.c index 8fd97df44a..b0e5e8a8d8 100644 --- a/source4/smb_server/reply.c +++ b/source4/smb_server/reply.c @@ -556,7 +556,11 @@ void reply_mknew(struct smbsrv_request *req) REQ_CHECK_WCT(req, 3); REQ_TALLOC(oi, sizeof(*oi)); - oi->mknew.level = RAW_OPEN_MKNEW; + if (CVAL(req->in.hdr, HDR_COM) == SMBmknew) { + oi->mknew.level = RAW_OPEN_MKNEW; + } else { + oi->mknew.level = RAW_OPEN_CREATE; + } oi->mknew.in.attrib = SVAL(req->in.vwv, VWV(0)); oi->mknew.in.write_time = srv_pull_dos_date3(req->smb_conn, req->in.vwv + VWV(1)); |