Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Mar 2012 17:08:42 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r232550 - stable/8/usr.sbin/pw
Message-ID:  <201203051708.q25H8g1o095316@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: delphij
Date: Mon Mar  5 17:08:42 2012
New Revision: 232550
URL: http://svn.freebsd.org/changeset/base/232550

Log:
  Backout r223115 and restore the historic behavior (create the
  default base directory in pw.conf).

Modified:
  stable/8/usr.sbin/pw/pw_user.c
Directory Properties:
  stable/8/usr.sbin/pw/   (props changed)

Modified: stable/8/usr.sbin/pw/pw_user.c
==============================================================================
--- stable/8/usr.sbin/pw/pw_user.c	Mon Mar  5 17:06:34 2012	(r232549)
+++ stable/8/usr.sbin/pw/pw_user.c	Mon Mar  5 17:08:42 2012	(r232550)
@@ -170,7 +170,7 @@ pw_user(struct userconf * cnf, int mode,
 	 * If we'll need to use it or we're updating it,
 	 * then create the base home directory if necessary
 	 */
-	if ((arg != NULL || getarg(args, 'm') != NULL) && (getarg(args, 'd') == NULL)) {
+	if (arg != NULL || getarg(args, 'm') != NULL) {
 		int	l = strlen(cnf->home);
 
 		if (l > 1 && cnf->home[l-1] == '/')	/* Shave off any trailing path delimiter */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201203051708.q25H8g1o095316>