fix perms regexpes
This commit is contained in:
parent
4d56e4552d
commit
ffef6ccb5d
1 changed files with 2 additions and 2 deletions
|
|
@ -201,11 +201,11 @@ EOT
|
||||||
|
|
||||||
my $perms = &slurp($permsfile);
|
my $perms = &slurp($permsfile);
|
||||||
|
|
||||||
if ( $perms =~ /^(\d{4}):([^-:][^:]*):([^:]+?):$fullname$/mo ) {
|
if ( $perms =~ /^(\d{4}):([^-:][^:]*):([^:]+?):($fullname)$/m ) {
|
||||||
if ( $1 eq $mode && $2 eq $user && $3 eq $group ) {
|
if ( $1 eq $mode && $2 eq $user && $3 eq $group ) {
|
||||||
return 1;
|
return 1;
|
||||||
} elsif ( $option{p} ){
|
} elsif ( $option{p} ){
|
||||||
$perms =~ s/^(\d{4}):([^-:][^:]*):([^:]+?):$fullname$/$mode:$user:$group:$fullname/o;
|
$perms =~ s/^(\d{4}):([^-:][^:]*):([^:]+?):$fullname$/$mode:$user:$group:$fullname/m;
|
||||||
open(FH, ">>$permsfile");
|
open(FH, ">>$permsfile");
|
||||||
print FH $perms;
|
print FH $perms;
|
||||||
close FH;
|
close FH;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue