From owner-freebsd-hackers Tue Jan 18 15:33:52 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from virtual-voodoo.com (virtual-voodoo.com [204.120.165.254]) by hub.freebsd.org (Postfix) with ESMTP id 6946414FA2 for ; Tue, 18 Jan 2000 15:33:48 -0800 (PST) (envelope-from steve@virtual-voodoo.com) Received: (from steve@localhost) by virtual-voodoo.com (8.9.3/8.9.3) id SAA51488; Tue, 18 Jan 2000 18:31:25 -0500 (EST) (envelope-from steve) Date: Tue, 18 Jan 2000 18:31:24 -0500 From: Steve Ames To: Jaye Mathisen Cc: hackers@FreeBSD.ORG Subject: Re: pw bug Message-ID: <20000118183124.A12827@virtual-voodoo.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.6i In-Reply-To: ; from Jaye Mathisen on Tue, Jan 18, 2000 at 02:19:40PM -0800 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG /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