Skip to content

Commit

Permalink
Info: more studiously ignore our fake daemons
Browse files Browse the repository at this point in the history
  • Loading branch information
elliefm committed Jul 26, 2023
1 parent f508297 commit c26eb72
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cassandane/Cassandane/Cyrus/Info.pm
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,11 @@ sub run_cyr_info
close RESULTS;

if ($args[0] eq 'proc') {
# if we see our fakesaslauthd, no we didn't
@res = grep { $_ !~ m/\bfakesaslauthd\b/ } @res;
# if we see any of our fake daemons, no we didn't
my @fakedaemons = qw(fakesaslauthd fakeldapd);
my $pattern = q{\b(?:} . join(q{|}, @fakedaemons) . q{)\b};
my $re = qr{$pattern};
@res = grep { $_ !~ m/$re/ } @res;
}

return @res;
Expand Down

0 comments on commit c26eb72

Please sign in to comment.