summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalph Boehme <slow@samba.org>2020-02-24 14:28:19 +0100
committerJeremy Allison <jra@samba.org>2020-02-25 17:44:44 +0000
commit99873724cd493366c9957fd9fe230d52a6f02691 (patch)
treeb25b3764019dfdc851e81db1f0d5e91439fc014f
parentd4c69d82bdc0fa029609032a9d32f32fa1708beb (diff)
downloadsamba-99873724cd493366c9957fd9fe230d52a6f02691.tar.gz
VFS: default: remove unused arg from vfswrap_is_offline()
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>
-rw-r--r--source3/modules/vfs_default.c12
1 files changed, 4 insertions, 8 deletions
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;