From 77622acadda5d216477e7c41490e9454e26f9226 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 5 Oct 2010 16:47:23 -0700 Subject: 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 Autobuild-Date: Wed Oct 6 00:29:51 UTC 2010 on sn-devel-104 --- source3/smbd/trans2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/smbd') 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)) { -- cgit