summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-12-07 11:38:53 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-12-07 11:38:53 -0800
commit17b7a875e114c6765ec5940dda8a067b5e51da1c (patch)
tree3eb635181f2914a2cc66a1cfaa36c5a505ce7021 /lib
parent2e10ddd350ceca36f9e43e272111a18e0695ce58 (diff)
downloadvyatta-cfg-quagga-17b7a875e114c6765ec5940dda8a067b5e51da1c.tar.gz
vyatta-cfg-quagga-17b7a875e114c6765ec5940dda8a067b5e51da1c.zip
Fix configure of user
Previous change broke setup of root account because 'uid = 0' looks like false so useradd called when usermod was intended.
Diffstat (limited to 'lib')
-rwxr-xr-xlib/Vyatta/Login/User.pm2
1 files changed, 1 insertions, 1 deletions
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)