Fix crash in SMB2 rename found by gentest. We must always have an lcomp
authorJeremy Allison <jra@samba.org>
Tue, 5 Oct 2010 23:47:23 +0000 (16:47 -0700)
committerJeremy Allison <jra@sn-devel-104.sn.samba.org>
Wed, 6 Oct 2010 00:29:51 +0000 (00:29 +0000)
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

source3/smbd/trans2.c

index 0888ded21af344b805fc5eb13aca893474f2adbc..701f26246e2562297539c69c2a274bdb18adde4d 100644 (file)
@@ -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)) {