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@samba.org>
Wed, 6 Oct 2010 22:59:15 +0000 (22:59 +0000)
in the destination struct for a rename, so set the flag appropriately.

Jeremy.

source3/smbd/trans2.c

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