r716: Fix for bugid #1345 (Macromedia Homesite cannot connect anymore after upgrade...
authorJeremy Allison <jra@samba.org>
Fri, 14 May 2004 01:22:17 +0000 (01:22 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:51:35 +0000 (10:51 -0500)
Cause was premature optimization in unix_convert(). My fault, sorry.
Jeremy.

source/smbd/filename.c

index a7223e7527e8a1a30597b1cb700352908b3045cd..5e5f5726913a69e09067e61b7142b7f68c45708c 100644 (file)
@@ -132,6 +132,10 @@ BOOL unix_convert(pstring name,connection_struct *conn,char *saved_last_componen
        if (!*name) {
                name[0] = '.';
                name[1] = '\0';
+               if (SMB_VFS_STAT(conn,name,&st) == 0) {
+                       *pst = st;
+               }
+               DEBUG(5,("conversion finished %s -> %s\n",orig_path, name));
                return(True);
        }