Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Jul 2011 10:51:39 -0500
From:      Nathan Whitehorn <nwhitehorn@freebsd.org>
To:        delphij@freebsd.org
Cc:        svn-src-all@FreeBSD.org, FreeBSD Release Engineering Team <re@freebsd.org>
Subject:   Re: svn commit: r223115 - head/usr.sbin/pw
Message-ID:  <4E32D70B.9060307@freebsd.org>

next in thread | raw e-mail | index | archive | help
> Author: delphij
> Date: Wed Jun 15 19:09:58 2011
> New Revision: 223115
> URL:http://svn.freebsd.org/changeset/base/223115
>
> Log:
>    Don't attempt to create the base directory when -d is specified.
>
>    MFC after:	1 month
>
> Modified:
>    head/usr.sbin/pw/pw_user.c
>
> Modified: head/usr.sbin/pw/pw_user.c
> ==============================================================================
> --- head/usr.sbin/pw/pw_user.c	Wed Jun 15 18:05:08 2011	(r223114)
> +++ head/usr.sbin/pw/pw_user.c	Wed Jun 15 19:09:58 2011	(r223115)
> @@ -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) {
> +	if ((arg != NULL || getarg(args, 'm') != NULL)&&  (getarg(args, 'd') == NULL)) {
>   		int	l = strlen(cnf->home);
>
>   		if (l>  1&&  cnf->home[l-1] == '/')	/* Shave off any trailing path delimiter */

This has broken use of adduser(8) on new systems without /home (or 
/usr/home) when using default settings and so has also broken creation 
of home directories in the installer. Please either fix adduser(8) not 
to fail or revert this.
-Nathan



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