aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2016-08-27 17:59:55 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2016-08-27 17:59:55 +0200
commit798af185c031de747cf373ade8bfbc1488b46159 (patch)
treecd2a872ae1297d04ce117c502c15270696b2fbef
parentab0b0c9d905bbe1ea94d8ec760513cd024495a83 (diff)
downloaduserdrake-798af185c031de747cf373ade8bfbc1488b46159.tar
userdrake-798af185c031de747cf373ade8bfbc1488b46159.tar.gz
userdrake-798af185c031de747cf373ade8bfbc1488b46159.tar.bz2
userdrake-798af185c031de747cf373ade8bfbc1488b46159.tar.xz
userdrake-798af185c031de747cf373ade8bfbc1488b46159.zip
perl_checker cleanups
-rwxr-xr-xuserdrake4
1 files changed, 2 insertions, 2 deletions
diff --git a/userdrake b/userdrake
index c771e75..d790d9d 100755
--- a/userdrake
+++ b/userdrake
@@ -284,7 +284,7 @@ sub NotebookSwitch() {
}
sub ComputeLockExpire {
- my $l = shift;
+ my ($l) = @_;
my $ep = $l->ShadowExpire($GetValue);
my $tm = ceil(time()/(24*60*60));
$ep = -1 if int($tm) <= $ep;
@@ -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) =~ /^\/($|var\/|run\/)/ || $l->LoginShell($GetValue) =~ /(nologin|false)$/);
+ next LOOP if $filterusers && $l->Uid($GetValue) > 499 && $l->Uid($GetValue) < 1000 && ($l->HomeDir($GetValue) =~ m!^/($|var/|run/)! || $l->LoginShell($GetValue) =~ /(nologin|false)$/);
push @UserReal, $l if $l->UserName($GetValue) =~ /^\Q$strfilt/;
}
my $i;