1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

r23445: Fix suggested by Volker. Don't call rename_open_files

if the name wasn't changed.
Jeremy.
This commit is contained in:
Jeremy Allison 2007-06-12 18:14:16 +00:00 committed by Gerald (Jerry) Carter
parent c9f38fa30e
commit 7a9629365e

View File

@ -4638,7 +4638,6 @@ NTSTATUS rename_internals(connection_struct *conn,
id = file_id_sbuf(&sbuf1);
if (strcsequal(directory, newname)) {
rename_open_files(conn, NULL, id, newname);
DEBUG(3, ("rename_internals: identical names in "
"rename %s - returning success\n",
directory));
@ -4770,7 +4769,6 @@ NTSTATUS rename_internals(connection_struct *conn,
id = file_id_sbuf(&sbuf1);
if (strcsequal(fname,destname)) {
rename_open_files(conn, NULL, id, newname);
DEBUG(3,("rename_internals: identical names "
"in wildcard rename %s - success\n",
fname));