From dc05ab8e19a26265ace720528f7e9341aea62ee2 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Tue, 13 Nov 2012 12:21:45 -0800 Subject: Ensure we Correctly set fsp->is_directory before dealing with ACLs. Reviewed by: Jeremy Allison --- source3/torture/cmd_vfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/torture') diff --git a/source3/torture/cmd_vfs.c b/source3/torture/cmd_vfs.c index a37c9fc7a7..64b1b50211 100644 --- a/source3/torture/cmd_vfs.c +++ b/source3/torture/cmd_vfs.c @@ -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()); -- cgit