r23538: Fix for wild-card rename: We can't return directly on error, we need to
[sfrench/samba-autobuild/.git] / source / smbd / reply.c
index e2b7084f114ad146c3c045711214d291ad5e35fc..41665e1676209cddc4dee47ccbe67e2c4cb22d77 100644 (file)
@@ -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++;