VFS: default: remove unused arg from vfswrap_is_offline()
authorRalph Boehme <slow@samba.org>
Mon, 24 Feb 2020 13:28:19 +0000 (14:28 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 25 Feb 2020 17:44:44 +0000 (17:44 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14293

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_default.c

index 209db91381e2fe9e90d7f2741234dca67011c780..b64071d6870c620fae219624bcd92db6aa57b19b 100644 (file)
@@ -1639,8 +1639,7 @@ static NTSTATUS vfswrap_fsctl(struct vfs_handle_struct *handle,
 }
 
 static bool vfswrap_is_offline(struct connection_struct *conn,
-                              const struct smb_filename *fname,
-                              SMB_STRUCT_STAT *sbuf);
+                              const struct smb_filename *fname);
 
 static NTSTATUS vfswrap_get_dos_attributes(struct vfs_handle_struct *handle,
                                           struct smb_filename *smb_fname,
@@ -1648,7 +1647,7 @@ static NTSTATUS vfswrap_get_dos_attributes(struct vfs_handle_struct *handle,
 {
        bool offline;
 
-       offline = vfswrap_is_offline(handle->conn, smb_fname, &smb_fname->st);
+       offline = vfswrap_is_offline(handle->conn, smb_fname);
        if (offline) {
                *dosmode |= FILE_ATTRIBUTE_OFFLINE;
        }
@@ -1798,9 +1797,7 @@ static NTSTATUS vfswrap_fget_dos_attributes(struct vfs_handle_struct *handle,
 {
        bool offline;
 
-       offline = vfswrap_is_offline(handle->conn,
-                                    fsp->fsp_name,
-                                    &fsp->fsp_name->st);
+       offline = vfswrap_is_offline(handle->conn, fsp->fsp_name);
        if (offline) {
                *dosmode |= FILE_ATTRIBUTE_OFFLINE;
        }
@@ -3546,8 +3543,7 @@ static bool vfswrap_aio_force(struct vfs_handle_struct *handle, struct files_str
 }
 
 static bool vfswrap_is_offline(struct connection_struct *conn,
-                              const struct smb_filename *fname,
-                              SMB_STRUCT_STAT *sbuf)
+                              const struct smb_filename *fname)
 {
        NTSTATUS status;
        char *path;