svn commit: r232550 - stable/8/usr.sbin/pw

Xin LI delphij at FreeBSD.org
Mon Mar 5 17:08:43 UTC 2012


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 */


More information about the svn-src-stable mailing list