summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2010-10-05 16:47:23 -0700
committerJeremy Allison <jra@samba.org>2010-10-06 22:59:15 +0000
commit0cec0f0912bc0cc15715fd68483f28e5b68e4439 (patch)
tree041dcf15c787c012681a5a55dc963eff0a6b20f5 /source3/smbd
parent5c52644eedd08982ce75ad532cafe16265968252 (diff)
downloadsamba-0cec0f0912bc0cc15715fd68483f28e5b68e4439.tar.gz
samba-0cec0f0912bc0cc15715fd68483f28e5b68e4439.tar.bz2
samba-0cec0f0912bc0cc15715fd68483f28e5b68e4439.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.
Diffstat (limited to 'source3/smbd')
-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 701f26246e..ac6f8cd9e3 100644
--- a/source3/smbd/trans2.c
+++ b/source3/smbd/trans2.c
@@ -6080,7 +6080,7 @@ static NTSTATUS smb_file_link_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)) {