summaryrefslogtreecommitdiff
path: root/scripts/system
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2007-11-01 18:19:21 -0700
committerAn-Cheng Huang <ancheng@vyatta.com>2007-11-01 18:19:21 -0700
commitc0c53152dc9cf08fdae421d9fd8441d129561ada (patch)
tree106ebea4614e983ee0ad829f25a3701b085508bf /scripts/system
parentcc0b5376c6342f629290e9637e258037a56c0aa6 (diff)
downloadvyatta-cfg-system-c0c53152dc9cf08fdae421d9fd8441d129561ada.tar.gz
vyatta-cfg-system-c0c53152dc9cf08fdae421d9fd8441d129561ada.zip
temporary workaround until "default:" works in CLI backend.
Diffstat (limited to 'scripts/system')
-rwxr-xr-xscripts/system/vyatta_update_login_user.pl4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/system/vyatta_update_login_user.pl b/scripts/system/vyatta_update_login_user.pl
index b246cee6..fa403224 100755
--- a/scripts/system/vyatta_update_login_user.pl
+++ b/scripts/system/vyatta_update_login_user.pl
@@ -140,6 +140,10 @@ my %group_map = (
'admin' => 'quaggavty',
'users' => 'users',
);
+# XXX temporary workaround until "default:" works in CLI backend.
+if (!defined($group) || $group eq '') {
+ $group = 'admin';
+}
exit 4 if (!defined($user) || !defined($full) || !defined($encrypted)
|| !defined($group));
exit 4 if (!defined($group_map{$group}));