summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@vyatta.com>2009-05-31 11:20:26 -0700
committerStig Thormodsrud <stig@vyatta.com>2009-05-31 11:20:26 -0700
commitba165c0e0cf3929ab29b45468cf550eda771c37d (patch)
tree4d33411d9d5e8cba1ef9f2a8867753c9eb22768e
parent2ab3e1427c62f86ee7e1b0f6c84ac1ecad23af4e (diff)
downloadvyatta-cfg-system-ba165c0e0cf3929ab29b45468cf550eda771c37d.tar.gz
vyatta-cfg-system-ba165c0e0cf3929ab29b45468cf550eda771c37d.zip
Fix bug preventing 'vyatta' user login.
-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";
}