mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 06:03:28 +00:00
when setting XFS quotas by UID or GID, the # is not allowed
https://github.com/webmin/webmin/issues/2418
This commit is contained in:
@@ -1012,6 +1012,7 @@ Set XFS quotas for some user and FS
|
||||
sub set_user_quota
|
||||
{
|
||||
my ($user, $fs, $sblocks, $hblocks, $sfiles, $hfiles) = @_;
|
||||
$user =~ s/^#//;
|
||||
my $out = &backquote_logged(
|
||||
"xfs_quota -x -c ".
|
||||
quotemeta("limit -u bsoft=${sblocks}k bhard=${hblocks}k ".
|
||||
@@ -1033,6 +1034,7 @@ Set XFS quotas for some group and FS
|
||||
sub set_group_quota
|
||||
{
|
||||
my ($group, $fs, $sblocks, $hblocks, $sfiles, $hfiles) = @_;
|
||||
$group =~ s/^#//;
|
||||
my $out = &backquote_logged(
|
||||
"xfs_quota -x -c ".
|
||||
quotemeta("limit -g bsoft=${sblocks}k bhard=${hblocks}k ".
|
||||
|
||||
Reference in New Issue
Block a user