From 17b7a875e114c6765ec5940dda8a067b5e51da1c Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Mon, 7 Dec 2009 11:38:53 -0800 Subject: Fix configure of user Previous change broke setup of root account because 'uid = 0' looks like false so useradd called when usermod was intended. --- lib/Vyatta/Login/User.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Vyatta/Login') diff --git a/lib/Vyatta/Login/User.pm b/lib/Vyatta/Login/User.pm index e09e3e94..3b1170ff 100755 --- a/lib/Vyatta/Login/User.pm +++ b/lib/Vyatta/Login/User.pm @@ -207,7 +207,7 @@ sub update { # not found in existing passwd, must be new my $cmd; - unless ( $uid ) { + unless ( defined($uid) ) { # make new user using vyatta shell # and make home directory (-m) # and with default group of 100 (users) -- cgit v1.2.3