Fix the build when realpath doesn't take null
authorJeremy Allison <jra@samba.org>
Sat, 10 Nov 2007 23:02:08 +0000 (15:02 -0800)
committerJeremy Allison <jra@samba.org>
Sat, 10 Nov 2007 23:02:08 +0000 (15:02 -0800)
as a last arg.
Jeremy.

source/smbd/service.c

index dd09a6955e5019eb9ca4a45e6504d8e1834ec5f1..c3972391f320c54de4fa8ccadb30cfbd2167bd55 100644 (file)
@@ -38,7 +38,7 @@ static bool canonicalize_connect_path(connection_struct *conn)
 #else
         pstring resolved_name_buf;
 #endif
-       char *resolved_name = SMB_VFS_REALPATH(conn,path,resolved_name_buf);
+       char *resolved_name = SMB_VFS_REALPATH(conn,conn->connectpath,resolved_name_buf);
        if (!resolved_name) {
                return false;
        }