trying to get HEAD building again. If you want the code
[samba.git] / source3 / smbd / filename.c
index b9e33e8f934316cc3da7e471ea5b398ec41f3970..ad107f9c3e13b814c7cde4f38819819a4cd6d346 100644 (file)
@@ -178,7 +178,7 @@ BOOL unix_convert(pstring name,connection_struct *conn,char *saved_last_componen
         * stat the name - if it exists then we are all done!
         */
 
-       if (vfs_stat(conn,name,&st) == 0) {
+       if (SMB_VFS_STAT(conn,name,&st) == 0) {
                stat_cache_add(orig_path, name);
                DEBUG(5,("conversion finished %s -> %s\n",orig_path, name));
                *pst = st;
@@ -234,7 +234,7 @@ BOOL unix_convert(pstring name,connection_struct *conn,char *saved_last_componen
                 * Check if the name exists up to this point.
                 */
 
-               if (vfs_stat(conn,name, &st) == 0) {
+               if (SMB_VFS_STAT(conn,name, &st) == 0) {
                        /*
                         * It exists. it must either be a directory or this must be
                         * the last part of the path for it to be OK.
@@ -342,7 +342,7 @@ BOOL unix_convert(pstring name,connection_struct *conn,char *saved_last_componen
                                 * JRA.
                                 */
 
-                               if (vfs_stat(conn,name, &st) == 0) {
+                               if (SMB_VFS_STAT(conn,name, &st) == 0) {
                                        *pst = st;
                                } else {
                                        ZERO_STRUCT(st);
@@ -418,7 +418,7 @@ BOOL check_name(pstring name,connection_struct *conn)
 #ifdef S_ISLNK
        if (!lp_symlinks(SNUM(conn))) {
                SMB_STRUCT_STAT statbuf;
-               if ( (conn->vfs_ops.lstat(conn,name,&statbuf) != -1) &&
+               if ( (SMB_VFS_LSTAT(conn,name,&statbuf) != -1) &&
                                (S_ISLNK(statbuf.st_mode)) ) {
                        DEBUG(3,("check_name: denied: file path name %s is a symlink\n",name));
                        ret=0;