fix for keysubdirs-as-groups sugar script to support "old style multi-keys" for users
This commit is contained in:
parent
a802071a5e
commit
2aa129bc70
|
@ -20,7 +20,7 @@ sub groupnames {
|
||||||
my @out = ();
|
my @out = ();
|
||||||
my %members = ();
|
my %members = ();
|
||||||
for my $pk (`find ../keydir/ -name "*.pub"`) {
|
for my $pk (`find ../keydir/ -name "*.pub"`) {
|
||||||
next unless $pk =~ m(.*/([^/]+)/([^/]+)\.pub$);
|
next unless $pk =~ m(.*/([^/]+)/([^/]+?)(?:@[^./]+)?\.pub$);
|
||||||
next if $1 eq 'keydir';
|
next if $1 eq 'keydir';
|
||||||
$members{$1} .= " $2";
|
$members{$1} .= " $2";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue