smbd: add some logging to unix_convert()
authorRalph Boehme <slow@samba.org>
Thu, 23 Apr 2020 14:09:28 +0000 (16:09 +0200)
committerJeremy Allison <jra@samba.org>
Fri, 24 Apr 2020 21:46:27 +0000 (21:46 +0000)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/filename.c

index 28e120ef16e416418c7c2355d2118472c4b48b79..03c6a4b0a163e2cd2638192c00613de40f803dcb 100644 (file)
@@ -617,6 +617,8 @@ static NTSTATUS unix_convert_step_stat(struct uc_state *state)
         * Check if the name exists up to this point.
         */
 
+       DBG_DEBUG("smb_fname [%s]\n", smb_fname_str_dbg(state->smb_fname));
+
        if (state->posix_pathnames) {
                ret = SMB_VFS_LSTAT(state->conn, state->smb_fname);
        } else {
@@ -802,6 +804,8 @@ static NTSTATUS unix_convert_step(struct uc_state *state)
                *state->end = 0;
        }
 
+       DBG_DEBUG("dirpath [%s] name [%s]\n", state->dirpath, state->name);
+
        /* The name cannot have a component of "." */
 
        if (ISDOT(state->name)) {