summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-02-19 11:07:47 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-02-19 11:07:47 -0800
commit27989f043e63c6b1986669b18cccc0bd434498ac (patch)
treed8cb1525561839be50a0320b74ad90d849c3e7a7
parent70d00f09cc3f9df11864ec52ec1379b99c82cfdf (diff)
parent3110c2a7fb37a43de92d1a377fc98c5a6b734bc2 (diff)
downloadvyatta-cfg-system-27989f043e63c6b1986669b18cccc0bd434498ac.tar.gz
vyatta-cfg-system-27989f043e63c6b1986669b18cccc0bd434498ac.zip
Merge branch 'kenwood' of vm:vyatta/kenwood/vyatta-cfg-system into kenwood
-rwxr-xr-xlib/Vyatta/Login/User.pm6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/Vyatta/Login/User.pm b/lib/Vyatta/Login/User.pm
index e08a65b9..e4909b9a 100755
--- a/lib/Vyatta/Login/User.pm
+++ b/lib/Vyatta/Login/User.pm
@@ -64,9 +64,6 @@ sub _authorized_keys {
my $config = new Vyatta::Config;
$config->setLevel("system login user $user authentication public-keys");
- my @keys = $config->listNodes();
- return unless @keys;
-
# ($name,$passwd,$uid,$gid,$quota,$comment,$gcos,$dir,$shell,$expire)
# = getpw*
my ( undef, undef, $uid, $gid, undef, undef, undef, $home ) =
@@ -87,7 +84,8 @@ sub _authorized_keys {
print {$auth} "# Automatically generated by Vyatta configuration\n";
print {$auth} "# Do not edit, all changes will be lost\n";
- foreach my $name (@keys) {
+
+ foreach my $name ($config->listNodes()) {
my $options = $config->returnValue("$name options");
my $type = $config->returnValue("$name type");
my $key = $config->returnValue("$name key");