summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorJason Downs <downsj@cvs.openbsd.org>1997-02-25 00:01:53 +0000
committerJason Downs <downsj@cvs.openbsd.org>1997-02-25 00:01:53 +0000
commit33c392cdaedb214ddc25ac91377409f999b5622e (patch)
treeff9f52c2bd13077d5be8dad552c16e62004f3a0e /usr.sbin
parent957b3fcc106174a8919537602a81fac949433b38 (diff)
Yet more fixes from tv@pobox.com, PR#122.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/adduser/adduser.perl14
1 files changed, 7 insertions, 7 deletions
diff --git a/usr.sbin/adduser/adduser.perl b/usr.sbin/adduser/adduser.perl
index 0d7ab32c612..a39df427e8b 100644
--- a/usr.sbin/adduser/adduser.perl
+++ b/usr.sbin/adduser/adduser.perl
@@ -1,6 +1,6 @@
#!/usr/bin/perl
#
-# $OpenBSD: adduser.perl,v 1.3 1997/02/20 01:24:17 downsj Exp $
+# $OpenBSD: adduser.perl,v 1.4 1997/02/25 00:01:52 downsj Exp $
#
# Copyright (c) 1995-1996 Wolfram Schneider <wosch@FreeBSD.org>. Berlin.
# All rights reserved.
@@ -1292,6 +1292,7 @@ sub config_read {
eval $_;
#warn "$_";
}
+ next if /^$/;
# lines with '^##' are not saved
push(@user_variable_list, $_)
if $user_flag && !/^##/ && (s/^[\$\@]// || /^[#\s]/);
@@ -1369,18 +1370,17 @@ shellpref = ($shpref)
# defaultshell if not empty ("bash")
defaultshell = "$defaultshell"
-# defaultgroup ('USER' for same as username or any other valid group
+# defaultgroup ('USER' for same as username or any other valid group)
defaultgroup = $defaultgroup
-# new users get this uid (1000)
-uid_start = 1000
+# new users get this uid
+uid_start = $uid_start
$do_not_delete
## your own variables, see /etc/adduser.message
-$user_var
-
-## end
EOF
+ print C "$user_var\n" if ($user_var ne '');
+ print C "\n## end\n";
close C;
}