fixed bug in quota setting
This commit is contained in:
parent
dd45a2aff9
commit
14b153c24c
|
@ -204,7 +204,7 @@ if ($< == 0 ) { # we are root
|
||||||
$vals[2] eq 'set' && do {
|
$vals[2] eq 'set' && do {
|
||||||
$i=0;
|
$i=0;
|
||||||
($<, $>) = ($>, $<); # Get root privileges
|
($<, $>) = ($>, $<); # Get root privileges
|
||||||
while ($quota_usr[$i][0]) {
|
while ($quota[$i][0]) {
|
||||||
$dev = Quota::getqcarg($quota[$i][0]);
|
$dev = Quota::getqcarg($quota[$i][0]);
|
||||||
$return = Quota::setqlim($dev,$user[2],$quota[$i][1],$quota[$i][2],$quota[$i][3],$quota[$i][4],1,$group);
|
$return = Quota::setqlim($dev,$user[2],$quota[$i][1],$quota[$i][2],$quota[$i][3],$quota[$i][4],1,$group);
|
||||||
if ($return == -1) {
|
if ($return == -1) {
|
||||||
|
|
Loading…
Reference in New Issue