summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2010-10-05 16:47:23 -0700
committerJeremy Allison <jra@sn-devel-104.sn.samba.org>2010-10-06 00:29:51 +0000
commit77622acadda5d216477e7c41490e9454e26f9226 (patch)
tree35a9ef509755baf498bed2bd734e0c87b2d84efb
parent46b4fe0c48cb045db0a372cf89d2b0da79e44bac (diff)
downloadsamba-77622acadda5d216477e7c41490e9454e26f9226.tar.gz
samba-77622acadda5d216477e7c41490e9454e26f9226.tar.bz2
samba-77622acadda5d216477e7c41490e9454e26f9226.zip
Fix crash in SMB2 rename found by gentest. We must always have an lcomp
in the destination struct for a rename, so set the flag appropriately. Jeremy. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Oct 6 00:29:51 UTC 2010 on sn-devel-104
-rw-r--r--source3/smbd/trans2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c
index 0888ded21a..701f26246e 100644
--- a/source3/smbd/trans2.c
+++ b/source3/smbd/trans2.c
@@ -5991,7 +5991,7 @@ static NTSTATUS smb2_file_rename_information(connection_struct *conn,
conn,
req->flags2 & FLAGS2_DFS_PATHNAMES,
newname,
- 0,
+ UCF_SAVE_LCOMP,
NULL,
&smb_fname_dst);
if (!NT_STATUS_IS_OK(status)) {