Author: delphij
Date: Sun Jul 31 03:00:00 2011
New Revision: 224535
URL: http://svn.freebsd.org/changeset/base/224535

Log:
  Backout r223115 which potentially caused a POLA violation, by restoring
  historic behavior (create the default base directory in pw.conf) before
  I came up with a better fix for this.
  
  Requested by: nwhitehorn
  Approved by:  re (kib)

Modified:
  head/usr.sbin/pw/pw_user.c

Modified: head/usr.sbin/pw/pw_user.c
==============================================================================
--- head/usr.sbin/pw/pw_user.c  Sat Jul 30 23:42:15 2011        (r224534)
+++ head/usr.sbin/pw/pw_user.c  Sun Jul 31 03:00:00 2011        (r224535)
@@ -163,7 +163,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 */
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to