summaryrefslogtreecommitdiff
path: root/source4/libcli/raw
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-08-14 01:31:31 +0000
committerAndrew Tridgell <tridge@samba.org>2003-08-14 01:31:31 +0000
commit89f55d36f31ae51e365fc0e4020be0728091bd53 (patch)
treecf2dd6ad8cc017b6da4df55a6507ea2e6ee624c3 /source4/libcli/raw
parent9af22cd8837f25758e3993d5836c2a26f05e5676 (diff)
downloadsamba-89f55d36f31ae51e365fc0e4020be0728091bd53.tar.gz
samba-89f55d36f31ae51e365fc0e4020be0728091bd53.tar.bz2
samba-89f55d36f31ae51e365fc0e4020be0728091bd53.zip
added the ancient SMBcreate operation to the testsuite and client lib
(This used to be commit 3eef35e581b5e1802711b9b5297f61800a7e242e)
Diffstat (limited to 'source4/libcli/raw')
-rw-r--r--source4/libcli/raw/rawfile.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/source4/libcli/raw/rawfile.c b/source4/libcli/raw/rawfile.c
index 97ec7c1f00..e9d3a8305d 100644
--- a/source4/libcli/raw/rawfile.c
+++ b/source4/libcli/raw/rawfile.c
@@ -330,6 +330,13 @@ struct cli_request *smb_raw_open_send(struct cli_tree *tree, union smb_open *par
put_dos_date3(req->out.vwv, VWV(1), parms->mknew.in.write_time);
cli_req_append_ascii4(req, parms->mknew.in.fname, STR_TERMINATE);
break;
+
+ case RAW_OPEN_CREATE:
+ SETUP_REQUEST(SMBcreate, 3, 0);
+ SSVAL(req->out.vwv, VWV(0), parms->create.in.attrib);
+ put_dos_date3(req->out.vwv, VWV(1), parms->create.in.write_time);
+ cli_req_append_ascii4(req, parms->create.in.fname, STR_TERMINATE);
+ break;
case RAW_OPEN_CTEMP:
SETUP_REQUEST(SMBctemp, 3, 0);
@@ -421,6 +428,11 @@ NTSTATUS smb_raw_open_recv(struct cli_request *req, TALLOC_CTX *mem_ctx, union s
parms->mknew.out.fnum = SVAL(req->in.vwv, VWV(0));
break;
+ case RAW_OPEN_CREATE:
+ CLI_CHECK_WCT(req, 1);
+ parms->create.out.fnum = SVAL(req->in.vwv, VWV(0));
+ break;
+
case RAW_OPEN_CTEMP:
CLI_CHECK_WCT(req, 1);
parms->ctemp.out.fnum = SVAL(req->in.vwv, VWV(0));