From: Ralph Boehme Date: Mon, 24 Feb 2020 13:28:19 +0000 (+0100) Subject: VFS: default: remove unused arg from vfswrap_is_offline() X-Git-Tag: ldb-2.2.0~1612 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=99873724cd493366c9957fd9fe230d52a6f02691;p=thirdparty%2Fsamba.git VFS: default: remove unused arg from vfswrap_is_offline() BUG: https://bugzilla.samba.org/show_bug.cgi?id=14293 Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- diff --git a/source3/modules/vfs_default.c b/source3/modules/vfs_default.c index 209db91381e..b64071d6870 100644 --- a/source3/modules/vfs_default.c +++ b/source3/modules/vfs_default.c @@ -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;