minor fixes
This commit is contained in:
parent
78768a35fe
commit
d0676d1896
1 changed files with 1 additions and 2 deletions
|
|
@ -183,7 +183,6 @@ sub inperms($) {
|
|||
$mode =~ s/.*(\d{4})$/$1/;
|
||||
|
||||
print "$mode:$user:$group:$fullname\n";
|
||||
exit;
|
||||
|
||||
unless ( -f $permsfile ) {
|
||||
print <<EOT;
|
||||
|
|
@ -201,7 +200,7 @@ EOT
|
|||
if ( $1 eq $mode && $2 eq $user && $3 eq $group ) {
|
||||
return 1;
|
||||
} elsif ( $option{p} ){
|
||||
$perms =~ s/^(\d{4}):([^-:][^:]*):([^:]+?):$fullname$/$mode:$user:$group:$filename/o;
|
||||
$perms =~ s/^(\d{4}):([^-:][^:]*):([^:]+?):$fullname$/$mode:$user:$group:$fullname/o;
|
||||
open(FH, ">>$permsfile");
|
||||
print FH $perms;
|
||||
close FH;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue