diff options
Diffstat (limited to 'source3/smbd/quotas.c')
-rw-r--r-- | source3/smbd/quotas.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/smbd/quotas.c b/source3/smbd/quotas.c index 2db18cdb21c..2f18e368b17 100644 --- a/source3/smbd/quotas.c +++ b/source3/smbd/quotas.c @@ -494,7 +494,7 @@ bool disk_quotas(connection_struct *conn, struct smb_filename *fname, */ ZERO_STRUCT(D); id.uid = -1; - r = SMB_VFS_GET_QUOTA(conn, fname->base_name, SMB_USER_FS_QUOTA_TYPE, + r = SMB_VFS_GET_QUOTA(conn, fname, SMB_USER_FS_QUOTA_TYPE, id, &D); if (r == -1 && errno != ENOSYS) { goto try_group_quota; @@ -516,13 +516,13 @@ bool disk_quotas(connection_struct *conn, struct smb_filename *fname, id.uid = fname->st.st_ex_uid; become_root(); - r = SMB_VFS_GET_QUOTA(conn, fname->base_name, + r = SMB_VFS_GET_QUOTA(conn, fname, SMB_USER_QUOTA_TYPE, id, &D); save_errno = errno; unbecome_root(); errno = save_errno; } else { - r = SMB_VFS_GET_QUOTA(conn, fname->base_name, + r = SMB_VFS_GET_QUOTA(conn, fname, SMB_USER_QUOTA_TYPE, id, &D); } @@ -560,7 +560,7 @@ try_group_quota: */ ZERO_STRUCT(D); id.gid = -1; - r = SMB_VFS_GET_QUOTA(conn, fname->base_name, SMB_GROUP_FS_QUOTA_TYPE, + r = SMB_VFS_GET_QUOTA(conn, fname, SMB_GROUP_FS_QUOTA_TYPE, id, &D); if (r == -1 && errno != ENOSYS) { return false; @@ -572,7 +572,7 @@ try_group_quota: id.gid = getegid(); ZERO_STRUCT(D); - r = SMB_VFS_GET_QUOTA(conn, fname->base_name, SMB_GROUP_QUOTA_TYPE, id, + r = SMB_VFS_GET_QUOTA(conn, fname, SMB_GROUP_QUOTA_TYPE, id, &D); if (r == -1) { |