From: Volker Lendecke Date: Mon, 18 Jun 2007 12:22:42 +0000 (+0000) Subject: r23538: Fix for wild-card rename: We can't return directly on error, we need to X-Git-Tag: samba-misc-tags/initial-v3-0-unstable~168 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=48cdafc10a0eb615d79057ec9e235ffe9a85e016;p=thirdparty%2Fsamba.git r23538: Fix for wild-card rename: We can't return directly on error, we need to CloseDir. --- diff --git a/source/smbd/reply.c b/source/smbd/reply.c index e2b7084f114..41665e16762 100644 --- a/source/smbd/reply.c +++ b/source/smbd/reply.c @@ -4689,7 +4689,7 @@ NTSTATUS rename_internals(connection_struct *conn, DEBUG(3,("rename_internals: open_file_ntcreate " "returned %s rename %s -> %s\n", nt_errstr(status), directory, newname)); - return status; + break; } status = rename_internals_fsp(conn, fsp, destname, attrs, @@ -4701,7 +4701,7 @@ NTSTATUS rename_internals(connection_struct *conn, DEBUG(3, ("rename_internals_fsp returned %s for " "rename %s -> %s\n", nt_errstr(status), directory, newname)); - return status; + break; } count++;