diff options
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/dosmode.c | 2 | ||||
-rw-r--r-- | source3/smbd/vfs.c | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/source3/smbd/dosmode.c b/source3/smbd/dosmode.c index c0bf168e53..307da32bc3 100644 --- a/source3/smbd/dosmode.c +++ b/source3/smbd/dosmode.c @@ -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; } diff --git a/source3/smbd/vfs.c b/source3/smbd/vfs.c index 40aaf6bb74..71de587d17 100644 --- a/source3/smbd/vfs.c +++ b/source3/smbd/vfs.c @@ -2006,10 +2006,11 @@ bool smb_vfs_call_aio_force(struct vfs_handle_struct *handle, } bool smb_vfs_call_is_offline(struct vfs_handle_struct *handle, - const char *path, SMB_STRUCT_STAT *sbuf) + const struct smb_filename *fname, + SMB_STRUCT_STAT *sbuf) { VFS_FIND(is_offline); - return handle->fns->is_offline(handle, path, sbuf); + return handle->fns->is_offline(handle, fname, sbuf); } int smb_vfs_call_set_offline(struct vfs_handle_struct *handle, |