diff options
author | Andrew Tridgell <tridge@samba.org> | 2003-08-13 16:04:21 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2003-08-13 16:04:21 +0000 |
commit | 75c0125fb71b0562e7bdd85c391764796b5f12f6 (patch) | |
tree | b589d2e6bbc2c517a3f79790d0ed309ef79f7507 /source4/smbd | |
parent | a3b86fe170beb70ffab8585a276ca1648fffd454 (diff) | |
download | samba-75c0125fb71b0562e7bdd85c391764796b5f12f6.tar.gz samba-75c0125fb71b0562e7bdd85c391764796b5f12f6.tar.bz2 samba-75c0125fb71b0562e7bdd85c391764796b5f12f6.zip |
- added SMBntrename test suite
- allow username of form DOMAIN\username or DOMAIN/username
- added ntrename to gentest
(This used to be commit 2b464472c17b791eb5b117f89d5aaea2bf60f6ad)
Diffstat (limited to 'source4/smbd')
-rw-r--r-- | source4/smbd/reply.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/source4/smbd/reply.c b/source4/smbd/reply.c index bc9a3b6a06..f4dd4cb50a 100644 --- a/source4/smbd/reply.c +++ b/source4/smbd/reply.c @@ -1600,20 +1600,21 @@ void reply_rmdir(struct request_context *req) ****************************************************************************/ void reply_mv(struct request_context *req) { - struct smb_rename *io; + union smb_rename *io; char *p; /* parse the request */ REQ_CHECK_WCT(req, 1); REQ_TALLOC(io, sizeof(*io)); - io->in.attrib = SVAL(req->in.vwv, VWV(0)); + io->generic.level = RAW_RENAME_RENAME; + io->rename.in.attrib = SVAL(req->in.vwv, VWV(0)); p = req->in.data; - p += req_pull_ascii4(req, &io->in.pattern1, p, STR_TERMINATE); - p += req_pull_ascii4(req, &io->in.pattern2, p, STR_TERMINATE); + p += req_pull_ascii4(req, &io->rename.in.pattern1, p, STR_TERMINATE); + p += req_pull_ascii4(req, &io->rename.in.pattern2, p, STR_TERMINATE); - if (!io->in.pattern1 || !io->in.pattern2) { + if (!io->rename.in.pattern1 || !io->rename.in.pattern2) { req_reply_error(req, NT_STATUS_FOOBAR); return; } |