summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-11-13 12:21:45 -0800
committerAndrew Bartlett <abartlet@samba.org>2012-11-13 22:48:19 +0100
commitdc05ab8e19a26265ace720528f7e9341aea62ee2 (patch)
tree821f5c4b2292465d4a342349579a9d6ae52a2199
parent6f47497610352f72128bdbcd3b45313ea9a265ab (diff)
downloadsamba-dc05ab8e19a26265ace720528f7e9341aea62ee2.tar.gz
samba-dc05ab8e19a26265ace720528f7e9341aea62ee2.tar.bz2
samba-dc05ab8e19a26265ace720528f7e9341aea62ee2.zip
Ensure we Correctly set fsp->is_directory before dealing with ACLs.
Reviewed by: Jeremy Allison <jra@samba.org>
-rw-r--r--source3/torture/cmd_vfs.c2
1 files changed, 1 insertions, 1 deletions
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());