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:
parent
c9f38fa30e
commit
7a9629365e
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user