Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Jan 2000 18:31:24 -0500
From:      Steve Ames <steve@virtual-voodoo.com>
To:        Jaye Mathisen <mrcpu@internetcds.com>
Cc:        hackers@FreeBSD.ORG
Subject:   Re: pw bug
Message-ID:  <20000118183124.A12827@virtual-voodoo.com>
In-Reply-To: <Pine.BSF.4.10.10001181414530.16479-100000@schizo.cdsnet.net>; from Jaye Mathisen on Tue, Jan 18, 2000 at 02:19:40PM -0800
References:  <Pine.BSF.4.10.10001181414530.16479-100000@schizo.cdsnet.net>

next in thread | previous in thread | raw e-mail | index | archive | help
/usr/src/usr.sbin/pw/pw_user.c line 736 of the file on my system:

$FreeBSD: src/usr.sbin/pw/pw_user.c,v 1.34 2000/01/15 00:20:21 davidn Exp

The line in question:

if (!PWALTDIR() && getarg(args, 'm') != NULL && pwd->pw_dir && *pwd->pw_dir == '/' && pwd->pw_dir[1]) {

The conditional !PWALTDIR() looks like the culprit. It may also be there
for some reason...

This is under 4.0-CURRENT but I'd guess you'll fine the same code somewhere
in your file.

-Steve

On Tue, Jan 18, 2000 at 02:19:40PM -0800, Jaye Mathisen wrote:
> 
> Running a relatively recent 3.4-STABLE:
> 
>   If you use the -V option to specify an alternate master.passwd/conf file
> location, then the -m option apparently doesn't work.
> 
>   I get users added to my alt pw file, but no home dir creation.
> 
>   Removing the -V /altdir option adds them to /etc/master.passwd, and
> creates the home dir.
> 
>   If anybody spots in the code where this is taking place, I would love
> to see a fix...  It's probably so obvious I am skipping over it.
> 
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-hackers" in the body of the message


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




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