Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/user Don't try to create or move directory if only ...



details:   https://anonhg.NetBSD.org/src/rev/61278f0d4874
branches:  trunk
changeset: 500185:61278f0d4874
user:      wiz <wiz%NetBSD.org@localhost>
date:      Thu Dec 07 17:44:03 2000 +0000

description:
Don't try to create or move directory if only '-d' is given (man page
says '-m' is needed for that). Problem reported by Johnny C. Lam.

diffstat:

 usr.sbin/user/user.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 87e16b9be14a -r 61278f0d4874 usr.sbin/user/user.c
--- a/usr.sbin/user/user.c      Thu Dec 07 17:32:33 2000 +0000
+++ b/usr.sbin/user/user.c      Thu Dec 07 17:44:03 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: user.c,v 1.33 2000/11/04 04:31:43 simonb Exp $ */
+/* $NetBSD: user.c,v 1.34 2000/12/07 17:44:03 wiz 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.33 2000/11/04 04:31:43 simonb Exp $");
+__RCSID("$NetBSD: user.c,v 1.34 2000/12/07 17:44:03 wiz Exp $");
 #endif
 
 #include <sys/types.h>
@@ -1277,7 +1277,7 @@
                        break;
                case 'd':
                        memsave(&u.u_home, optarg, strlen(optarg));
-                       u.u_flags |= (F_MKDIR | F_HOMEDIR);
+                       u.u_flags |= F_HOMEDIR;
                        break;
                case 'e':
                        defaultfield = 1;
@@ -1390,7 +1390,7 @@
                        break;
                case 'd':
                        memsave(&u.u_home, optarg, strlen(optarg));
-                       u.u_flags |= (F_MKDIR | F_HOMEDIR);
+                       u.u_flags |= F_HOMEDIR;
                        break;
                case 'e':
                        memsave(&u.u_expire, optarg, strlen(optarg));



Home | Main Index | Thread Index | Old Index