diff options
| author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-12-07 11:38:53 -0800 |
|---|---|---|
| committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-12-07 11:38:53 -0800 |
| commit | 17b7a875e114c6765ec5940dda8a067b5e51da1c (patch) | |
| tree | 3eb635181f2914a2cc66a1cfaa36c5a505ce7021 /lib | |
| parent | 2e10ddd350ceca36f9e43e272111a18e0695ce58 (diff) | |
| download | vyatta-cfg-system-17b7a875e114c6765ec5940dda8a067b5e51da1c.tar.gz vyatta-cfg-system-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-x | lib/Vyatta/Login/User.pm | 2 |
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) |
