summaryrefslogtreecommitdiff
path: root/usr.sbin/user/user.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2002-03-05 17:30:16 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2002-03-05 17:30:16 +0000
commita6dd6612bee7a21dbe93542e20e9d482d88ae5a4 (patch)
tree5cdbbfac2f61d3b93c070535952048d689a7e512 /usr.sbin/user/user.c
parent96495af16ab9fe12e249c317dc4de675ecb784ad (diff)
'user -D -k path' was not actually changing the default values unless another
option to change was specified. Also fix man page formatting mistake. From Brian Poole
Diffstat (limited to 'usr.sbin/user/user.c')
-rw-r--r--usr.sbin/user/user.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/user/user.c b/usr.sbin/user/user.c
index 66ac590a9cc..9f2a59da66d 100644
--- a/usr.sbin/user/user.c
+++ b/usr.sbin/user/user.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: user.c,v 1.29 2001/12/05 18:23:55 millert Exp $ */
+/* $OpenBSD: user.c,v 1.30 2002/03/05 17:30:15 millert Exp $ */
/* $NetBSD: user.c,v 1.45 2001/08/17 08:29:00 joda Exp $ */
/*
@@ -1298,6 +1298,7 @@ useradd(int argc, char **argv)
memsave(&u.u_primgrp, optarg, strlen(optarg));
break;
case 'k':
+ defaultfield = 1;
memsave(&u.u_skeldir, optarg, strlen(optarg));
break;
#ifdef EXTENSIONS