summaryrefslogtreecommitdiff
path: root/Users
diff options
context:
space:
mode:
Diffstat (limited to 'Users')
-rw-r--r--Users/Users.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/Users/Users.pm b/Users/Users.pm
index f924d83..ff5726c 100644
--- a/Users/Users.pm
+++ b/Users/Users.pm
@@ -625,6 +625,10 @@ sub add_user
&change_user_chfn ($$user[$LOGIN], undef, $$user[$COMMENT]);
&set_passwd ($$user[$LOGIN], $$user[$PASSWD]);
+
+ # Return the new user with default values filled.
+ # Returns NULL if user doesn't exist, which means failure.
+ return &get_user ($$user[$LOGIN]);
}
sub change_user