summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2015-10-19 16:04:02 -0700
committerAndreas Schneider <asn@cryptomilk.org>2015-10-21 08:25:26 +0200
commit1d51119f8acaa586e9ec09d14f10b43ed0053df5 (patch)
treeb148691407c9533e76496caae8c2ba40156a04c3 /source3
parent7f8f1ab9a48cd0e90c0b18a73956c25afb528a99 (diff)
downloadsamba-1d51119f8acaa586e9ec09d14f10b43ed0053df5.tar.gz
s3-smbd: Fix old DOS client doing wildcard delete - gives a attribute type of zero
In the wildcard delete path we forgot to map 0 -> FILE_ATTRIBUTE_NORMAL as we do in the non-wildcard delete path. BUG: https://bugzilla.samba.org/show_bug.cgi?id=11452 Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/reply.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index bebb789dfe7..c796c00ff19 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -2915,6 +2915,9 @@ NTSTATUS unlink_internals(connection_struct *conn, struct smb_request *req,
status = NT_STATUS_OBJECT_NAME_INVALID;
goto out;
}
+ if (dirtype == 0) {
+ dirtype = FILE_ATTRIBUTE_NORMAL;
+ }
if (strequal(fname_mask,"????????.???")) {
TALLOC_FREE(fname_mask);