From 3d5fdced72a70a658f684da2430e6b625c80540a Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Sat, 3 Apr 2004 00:17:18 +0000 Subject: Fix wildcard unlink. Jeremy. (This used to be commit 6e9b4c57ccb385acb9feaf9f7412778474231a92) --- source3/smbd/reply.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source3/smbd') diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index 7498821185..42167c6e81 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -1575,13 +1575,14 @@ NTSTATUS unlink_internals(connection_struct *conn, int dirtype, char *name) if (sys_direntry) { error = NT_STATUS_OBJECT_NAME_INVALID; - continue; + break; } slprintf(fname,sizeof(fname)-1, "%s/%s",directory,dname); error = can_delete(fname,conn,dirtype,bad_path); - if (!NT_STATUS_IS_OK(error)) + if (!NT_STATUS_IS_OK(error)) { continue; + } if (SMB_VFS_UNLINK(conn,fname) == 0) count++; DEBUG(3,("unlink_internals: succesful unlink [%s]\n",fname)); -- cgit