r8494: fixed a bug in RAW-SFILEINFO that caused inconsistent results on different...
authorAndrew Tridgell <tridge@samba.org>
Fri, 15 Jul 2005 12:16:39 +0000 (12:16 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:23:09 +0000 (13:23 -0500)
(This used to be commit 9264555541a0e251730010a75d063f56971249a2)

source4/torture/raw/setfileinfo.c

index cbfb6aa6a155965ed30c0f4f069e10d60990714c..50ace8aa06a7c7c77ca31e5a01272caecdd431ea 100644 (file)
@@ -444,6 +444,8 @@ BOOL torture_raw_sfileinfo(void)
        fnum = fnum_saved;
 
        printf("Trying rename with dest file open and delete_on_close\n");
+       sfinfo.rename_information.in.new_name  = fnum_fname+strlen(BASEDIR)+1;
+       sfinfo.rename_information.in.overwrite = 1;
        CHECK_CALL_FNUM(RENAME_INFORMATION, NT_STATUS_ACCESS_DENIED);
 
        smbcli_close(cli->tree, fnum2);