mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
Fix wildcard identical rename.
Jeremy. (This used to be commit 610ae1126e227f45a1affa1030ee833a341a687f)
This commit is contained in:
parent
ff469fb2b2
commit
becfb420f7
@ -3852,6 +3852,14 @@ directory = %s, newname = %s, last_component_dest = %s, is_8_3 = %d\n",
|
||||
continue;
|
||||
}
|
||||
|
||||
if (strcsequal(fname,destname)) {
|
||||
rename_open_files(conn, sbuf1.st_dev, sbuf1.st_ino, newname);
|
||||
DEBUG(3,("rename_internals: identical names in wildcard rename %s - success\n", fname));
|
||||
count++;
|
||||
error = NT_STATUS_OK;
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!replace_if_exists &&
|
||||
vfs_file_exist(conn,destname, NULL)) {
|
||||
DEBUG(6,("file_exist %s\n", destname));
|
||||
|
Loading…
x
Reference in New Issue
Block a user