diff options
author | Andrew Tridgell <tridge@samba.org> | 2008-02-14 12:30:31 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2008-02-14 12:30:31 +1100 |
commit | 839ab724dc2d204bfbb0693aeed64f6f83a4266b (patch) | |
tree | ec1db35884c7601a58a7cbeaddb94c75fd6668ec /source4/libcli/smb2 | |
parent | e870cfec9f3512b0f1bd3110d7b975652525e28a (diff) | |
download | samba-839ab724dc2d204bfbb0693aeed64f6f83a4266b.tar.gz samba-839ab724dc2d204bfbb0693aeed64f6f83a4266b.tar.bz2 samba-839ab724dc2d204bfbb0693aeed64f6f83a4266b.zip |
Fixed SMB2 rename operations from Vista clients
We needed a flag in bufinfo to mark packets as SMB2, as it seems that
SMB2 uses a different format for the RenameInformation buffer than SMB
does
Also handle the fact that SMB2 clients give the full path to the
target file in the rename, not a relative path
(This used to be commit 52d7972d95ddc19d22a4187b4d4428a6c3ed32d5)
Diffstat (limited to 'source4/libcli/smb2')
-rw-r--r-- | source4/libcli/smb2/request.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/libcli/smb2/request.c b/source4/libcli/smb2/request.c index 0b680fb166..35229dc45f 100644 --- a/source4/libcli/smb2/request.c +++ b/source4/libcli/smb2/request.c @@ -32,7 +32,7 @@ void smb2_setup_bufinfo(struct smb2_request *req) { req->in.bufinfo.mem_ctx = req; - req->in.bufinfo.unicode = true; + req->in.bufinfo.flags = BUFINFO_FLAG_UNICODE | BUFINFO_FLAG_SMB2; req->in.bufinfo.align_base = req->in.buffer; if (req->in.dynamic) { req->in.bufinfo.data = req->in.dynamic; |