diff options
author | Colin Guthrie <colin@mageia.org> | 2014-07-28 09:48:09 +0100 |
---|---|---|
committer | Colin Guthrie <colin@mageia.org> | 2014-07-28 09:48:09 +0100 |
commit | ac74fc46ea1a08e537eefcdd03cfcfbed197ddf9 (patch) | |
tree | 264076705b119a275e893b1c4533a26c33b58263 | |
parent | dd8f293d9860ef9ae8e0fbe6d30be6e7048a0750 (diff) | |
download | userdrake-ac74fc46ea1a08e537eefcdd03cfcfbed197ddf9.tar userdrake-ac74fc46ea1a08e537eefcdd03cfcfbed197ddf9.tar.gz userdrake-ac74fc46ea1a08e537eefcdd03cfcfbed197ddf9.tar.bz2 userdrake-ac74fc46ea1a08e537eefcdd03cfcfbed197ddf9.tar.xz userdrake-ac74fc46ea1a08e537eefcdd03cfcfbed197ddf9.zip |
Improve system user in 500-999 range heuristic by adding /run homedir filtering
-rwxr-xr-x | userdrake | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -300,7 +300,7 @@ sub RefreshUsersFull { my @UserReal; LOOP: foreach my $l (@$users) { next LOOP if $filterusers && $l->Uid($GetValue) <= 499 || $l->Uid($GetValue) == 65534; - next LOOP if $filterusers && $l->Uid($GetValue) > 499 && $l->Uid($GetValue) < 1000 && ($l->HomeDir($GetValue) eq "/" || $l->HomeDir($GetValue) =~ /^\/var\// || $l->LoginShell($GetValue) =~ /(nologin|false)$/); + next LOOP if $filterusers && $l->Uid($GetValue) > 499 && $l->Uid($GetValue) < 1000 && ($l->HomeDir($GetValue) =~ /^\/($|var\/|run\/)/ || $l->LoginShell($GetValue) =~ /(nologin|false)$/); push @UserReal, $l if $l->UserName($GetValue) =~ /^\Q$strfilt/; } my $i; |