diff options
author | jkar8572 <jkar8572> | 2007-04-24 15:36:38 +0000 |
---|---|---|
committer | jkar8572 <jkar8572> | 2007-04-24 15:36:38 +0000 |
commit | 77a79ea8a3669f6c51f9079d8cd350c8743f2ee5 (patch) | |
tree | 59199af005272ed1f2d2da7a577e89ea7cc31a0e /ldap-scripts/edquota_editor | |
parent | 7003af5ad19d626f43913ba54478df47d46fc32e (diff) |
Recognize ext4 filesystem (Jan Kara)
Fix LDAP scripts to use VISUAL instead of EDITOR (Michael Meskes)
Diffstat (limited to 'ldap-scripts/edquota_editor')
-rwxr-xr-x | ldap-scripts/edquota_editor | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ldap-scripts/edquota_editor b/ldap-scripts/edquota_editor index 95a03ee..fdebd09 100755 --- a/ldap-scripts/edquota_editor +++ b/ldap-scripts/edquota_editor @@ -10,7 +10,7 @@ die "QUOTA_SFILES environment variable not set\n" unless defined $ENV{'QUOTA_SFI die "QUOTA_HFILES environment variable not set\n" unless defined $ENV{'QUOTA_HFILES'}; open FILE, $ARGV[0]; -$qdata = join '', (@_=<FILE>); +my $qdata = join '', (@_=<FILE>); close FILE; open FILE, ">$ARGV[0]"; print FILE &edit_quota_file($qdata, $ENV{'QUOTA_FILESYS'}, $ENV{'QUOTA_SBLOCKS'}, $ENV{'QUOTA_HBLOCKS'}, $ENV{'QUOTA_SFILES'}, $ENV{'QUOTA_HFILES'}); @@ -18,7 +18,7 @@ close FILE; # edit_quota_file(data, filesys, sblocks, hblocks, sfiles, hfiles) sub edit_quota_file { - local($rv, $line, @line, $i); + my($rv, $line, @line, $i); @line = split /\n/, $_[0]; for ( $i=0; $i<@line; $i++ ) { if ($line[$i] =~ /^\s+(\S+)\s+(\d+)\s+(\d+)\s+(\d+)\s+(\d+)\s+(\d+)\s+(\d+)$/ && ($1 eq $_[1] || $_[1] eq '*')) { |