summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2004-04-02 19:51:27 +0000
committerJeremy Allison <jra@samba.org>2004-04-02 19:51:27 +0000
commitbecfb420f743183caa49ff135948c13861fcc379 (patch)
tree1b33d13c19c0d2e1819398926f55727a12437bd9 /source3/smbd
parentff469fb2b26e4edb52dd808e9d07c6cd51d2aab9 (diff)
downloadsamba-becfb420f743183caa49ff135948c13861fcc379.tar.gz
samba-becfb420f743183caa49ff135948c13861fcc379.tar.bz2
samba-becfb420f743183caa49ff135948c13861fcc379.zip
Fix wildcard identical rename.
Jeremy. (This used to be commit 610ae1126e227f45a1affa1030ee833a341a687f)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/reply.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index 3a11f162d2..9f311c6d57 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -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));