diff options
author | Andrew Tridgell <tridge@samba.org> | 1997-11-20 01:36:36 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1997-11-20 01:36:36 +0000 |
commit | 31e8936b9a416aad109e6f63f4c90ac596116510 (patch) | |
tree | 223ec12511c213e8fe12c7bba96143969dd5562d /source3/smbd | |
parent | 6a6653f8152a0caf523639eca913f22431b2211a (diff) | |
download | samba-31e8936b9a416aad109e6f63f4c90ac596116510.tar.gz samba-31e8936b9a416aad109e6f63f4c90ac596116510.tar.bz2 samba-31e8936b9a416aad109e6f63f4c90ac596116510.zip |
added some debug lines to the rename code
(This used to be commit ee3042eefb47bbdbefc83ab3f0f407c7dea4d8a0)
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/reply.c | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index 0d5f016613..2c646d99f5 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -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)); |