Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/user Fix for skeleton directory changes to defaults...



details:   https://anonhg.NetBSD.org/src/rev/2af93160fa02
branches:  trunk
changeset: 526426:2af93160fa02
user:      agc <agc%NetBSD.org@localhost>
date:      Fri May 03 10:11:16 2002 +0000

description:
Fix for skeleton directory changes to defaults file from Brian Poole
<raj%cerias.purdue.edu@localhost>

Previous behaviour as follows:

# useradd -D -k /foo/bar
group           users
base_dir        /home
skel_dir        /foo/bar
shell           /bin/csh
class
inactive        0
expire          Null (unset)
range           10200..10300
range           10600..10700
# useradd -D
group           users
base_dir        /home
skel_dir        /etc/skel
shell           /bin/csh
class
inactive        0
expire          Null (unset)
range           10200..10300
range           10600..10700

diffstat:

 usr.sbin/user/user.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 60c86150a603 -r 2af93160fa02 usr.sbin/user/user.c
--- a/usr.sbin/user/user.c      Fri May 03 10:05:28 2002 +0000
+++ b/usr.sbin/user/user.c      Fri May 03 10:11:16 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: user.c,v 1.49 2002/05/03 10:05:28 agc Exp $ */
+/* $NetBSD: user.c,v 1.50 2002/05/03 10:11:16 agc Exp $ */
 
 /*
  * Copyright (c) 1999 Alistair G. Crooks.  All rights reserved.
@@ -35,7 +35,7 @@
 #ifndef lint
 __COPYRIGHT("@(#) Copyright (c) 1999 \
                The NetBSD Foundation, Inc.  All rights reserved.");
-__RCSID("$NetBSD: user.c,v 1.49 2002/05/03 10:05:28 agc Exp $");
+__RCSID("$NetBSD: user.c,v 1.50 2002/05/03 10:11:16 agc Exp $");
 #endif
 
 #include <sys/types.h>
@@ -1367,6 +1367,7 @@
                        memsave(&u.u_primgrp, optarg, strlen(optarg));
                        break;
                case 'k':
+                       defaultfield = 1;
                        memsave(&u.u_skeldir, optarg, strlen(optarg));
                        break;
 #ifdef EXTENSIONS



Home | Main Index | Thread Index | Old Index