s3: Pass smb_filename through the is_offline vfs op
[ira/wip.git] / source3 / smbd / dosmode.c
index c0bf168e5381906c5aad98083342a7a5146db7d3..307da32bc3eeff93c2f93cba669754ea4073009a 100644 (file)
@@ -648,7 +648,7 @@ uint32 dos_mode(connection_struct *conn, struct smb_filename *smb_fname)
                }
        }
 
-       offline = SMB_VFS_IS_OFFLINE(conn, smb_fname->base_name, &smb_fname->st);
+       offline = SMB_VFS_IS_OFFLINE(conn, smb_fname, &smb_fname->st);
        if (S_ISREG(smb_fname->st.st_ex_mode) && offline) {
                result |= FILE_ATTRIBUTE_OFFLINE;
        }