From 31e8936b9a416aad109e6f63f4c90ac596116510 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 20 Nov 1997 01:36:36 +0000 Subject: added some debug lines to the rename code (This used to be commit ee3042eefb47bbdbefc83ab3f0f407c7dea4d8a0) --- source3/smbd/reply.c | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'source3/smbd') 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)); -- cgit