mirror of
https://github.com/samba-team/samba.git
synced 2025-03-11 16:58:40 +03:00
added some debug lines to the rename code
(This used to be commit ee3042eefb47bbdbefc83ab3f0f407c7dea4d8a0)
This commit is contained in:
parent
6a6653f815
commit
31e8936b9a
@ -3158,14 +3158,23 @@ int reply_mv(char *inbuf,char *outbuf)
|
||||
|
||||
error = ERRnoaccess;
|
||||
sprintf(fname,"%s/%s",directory,dname);
|
||||
if (!can_rename(fname,cnum)) continue;
|
||||
if (!can_rename(fname,cnum)) {
|
||||
DEBUG(6,("rename %s refused\n", fname));
|
||||
continue;
|
||||
}
|
||||
pstrcpy(destname,newname);
|
||||
|
||||
if (!resolve_wildcards(fname,destname)) continue;
|
||||
if (!resolve_wildcards(fname,destname)) {
|
||||
DEBUG(6,("resolve_wildcards %s %s failed\n",
|
||||
fname, destname));
|
||||
continue;
|
||||
}
|
||||
|
||||
if (file_exist(destname,NULL)) {
|
||||
error = 183;
|
||||
continue;
|
||||
DEBUG(6,("file_exist %s\n",
|
||||
destname));
|
||||
error = 183;
|
||||
continue;
|
||||
}
|
||||
if (!sys_rename(fname,destname)) count++;
|
||||
DEBUG(3,("reply_mv : doing rename on %s -> %s\n",fname,destname));
|
||||
|
Loading…
x
Reference in New Issue
Block a user