Ensure we Correctly set fsp->is_directory before dealing with ACLs.
authorAndrew Bartlett <abartlet@samba.org>
Tue, 13 Nov 2012 20:21:45 +0000 (12:21 -0800)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 13 Nov 2012 21:48:19 +0000 (22:48 +0100)
Reviewed by: Jeremy Allison <jra@samba.org>

source3/torture/cmd_vfs.c

index a37c9fc7a7b95791d9b745607d4c950576c3a958..64b1b50211e53ef47f0056948761040939e7d8e0 100644 (file)
@@ -1524,7 +1524,7 @@ static NTSTATUS cmd_set_nt_acl(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int a
        fsp->print_file = NULL;
        fsp->modified = False;
        fsp->sent_oplock_break = NO_BREAK_SENT;
-       fsp->is_directory = False;
+       fsp->is_directory = S_ISDIR(smb_fname->st.st_ex_mode);
 
 
        sd = sddl_decode(talloc_tos(), argv[2], get_global_sam_sid());