summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/system/vyatta_update_login.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/system/vyatta_update_login.pl b/scripts/system/vyatta_update_login.pl
index c8d0a23a..c8c064a7 100755
--- a/scripts/system/vyatta_update_login.pl
+++ b/scripts/system/vyatta_update_login.pl
@@ -121,7 +121,7 @@ for my $user (@user_keys) {
$cmd .= " -d \"$home\"" if ( defined $home );
$cmd .= ' -G ' . join( ',', @groups );
system("sudo $cmd $user");
- return if ($? == 0);
+ next if ($? == 0);
my $reason = $reasons{($? >> 8)};
die "Attempt to change user $user failed: $reason\n";
}