diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2022-02-27 15:51:58 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2022-02-27 15:58:22 -0700 |
commit | 9c6a4e779742dcbc80969dea53ec651bfa56bd63 (patch) | |
tree | 8e0f46aead261121f87ded37e4683498819f6066 /bin | |
parent | 26420cbb7572b07becbe24ef0f27c91aa088850e (diff) | |
download | dotfiles-9c6a4e779742dcbc80969dea53ec651bfa56bd63.tar.gz |
locmaint: use executable_find to search for mailq(1)
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/locmaint | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bin/locmaint b/bin/locmaint index 7c7669d3..3bfa2c7a 100755 --- a/bin/locmaint +++ b/bin/locmaint @@ -569,8 +569,7 @@ sub do_sysmaint { sub { system_pty_capture(as_root("apt-get autoclean")) } ); - chomp(my $mailq = `which mailq`); - if (-x $mailq) { + if (-x executable_find "mailq") { chomp(my $owner = `dpkg-query -S $mailq`); $owner =~ s/: $mailq\z//; # this check is only for systems running postfix |