summaryrefslogtreecommitdiffstats
path: root/source3/smbd/reply.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2013-11-12 15:17:26 -0800
committerAndreas Schneider <asn@samba.org>2013-11-14 19:29:00 +0100
commit7d8e22c7c1cf0041fa638f3bb345e00fc339486b (patch)
treefb73089ccaba31631a123ad8d7ca7cdc2ba9719a /source3/smbd/reply.c
parent0d5f217cfe03df7258be37adf0f20067a8e30fa8 (diff)
downloadsamba-7d8e22c7c1cf0041fa638f3bb345e00fc339486b.tar.gz
samba-7d8e22c7c1cf0041fa638f3bb345e00fc339486b.tar.xz
samba-7d8e22c7c1cf0041fa638f3bb345e00fc339486b.zip
s3-smbd: smbclient shows no error if deleting a directory with del failed
BUG: https://bugzilla.samba.org/show_bug.cgi?id=10260 Remove unneeded conn argument to dir_check_ftype(). Move to correct uint32_t types. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'source3/smbd/reply.c')
-rw-r--r--source3/smbd/reply.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index 3f59df8a261..b160290345c 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -2655,7 +2655,7 @@ static NTSTATUS do_unlink(connection_struct *conn,
return NT_STATUS_NO_SUCH_FILE;
}
- if (!dir_check_ftype(conn, fattr, dirtype)) {
+ if (!dir_check_ftype(fattr, dirtype)) {
if (fattr & FILE_ATTRIBUTE_DIRECTORY) {
return NT_STATUS_FILE_IS_A_DIRECTORY;
}