From 43c41bb52a4429c66ac004f075f23ab8463ed8a1 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 10 Jan 2007 18:40:30 +0000 Subject: r20660: 126 operations - getting close now.... Jeremy. --- source/smbd/reply.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/smbd/reply.c b/source/smbd/reply.c index 30a6cc3e48f..e8a90c143fc 100644 --- a/source/smbd/reply.c +++ b/source/smbd/reply.c @@ -1838,7 +1838,7 @@ NTSTATUS unlink_internals(connection_struct *conn, uint32 dirtype, char *name, B struct smb_Dir *dir_hnd = NULL; const char *dname; - if (dirtype == aDIR && mask[0] == '*' && mask[1] == '\0') { + if (((dirtype & SAMBA_ATTRIBUTES_MASK) == aDIR) && ms_has_wild(mask)) { return NT_STATUS_OBJECT_NAME_INVALID; } -- cgit