diff options
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/dfree.c | 2 | ||||
-rw-r--r-- | source3/smbd/vfs.c | 9 |
2 files changed, 7 insertions, 4 deletions
diff --git a/source3/smbd/dfree.c b/source3/smbd/dfree.c index 7e58daa45cf..a702d083a11 100644 --- a/source3/smbd/dfree.c +++ b/source3/smbd/dfree.c @@ -118,7 +118,7 @@ uint64_t sys_disk_free(connection_struct *conn, struct smb_filename *fname, syscmd, strerror(errno) )); } - if (SMB_VFS_DISK_FREE(conn, path, bsize, dfree, dsize) == + if (SMB_VFS_DISK_FREE(conn, fname, bsize, dfree, dsize) == (uint64_t)-1) { DBG_ERR("VFS disk_free failed. Error was : %s\n", strerror(errno)); diff --git a/source3/smbd/vfs.c b/source3/smbd/vfs.c index 9248091153a..f91e9e33a02 100644 --- a/source3/smbd/vfs.c +++ b/source3/smbd/vfs.c @@ -1468,11 +1468,14 @@ void smb_vfs_call_disconnect(struct vfs_handle_struct *handle) } uint64_t smb_vfs_call_disk_free(struct vfs_handle_struct *handle, - const char *path, uint64_t *bsize, - uint64_t *dfree, uint64_t *dsize) + const struct smb_filename *smb_fname, + uint64_t *bsize, + uint64_t *dfree, + uint64_t *dsize) { VFS_FIND(disk_free); - return handle->fns->disk_free_fn(handle, path, bsize, dfree, dsize); + return handle->fns->disk_free_fn(handle, smb_fname, + bsize, dfree, dsize); } int smb_vfs_call_get_quota(struct vfs_handle_struct *handle, const char *path, |