From owner-freebsd-hackers Fri Aug 1 08:14:45 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id IAA24514 for hackers-outgoing; Fri, 1 Aug 1997 08:14:45 -0700 (PDT) Received: from labs.usn.blaze.net.au (root@labs.usn.blaze.net.au [203.17.53.30]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id IAA24503 for ; Fri, 1 Aug 1997 08:14:33 -0700 (PDT) Received: from labs.usn.blaze.net.au (davidn@local [127.0.0.1]) by labs.usn.blaze.net.au (8.8.6/8.8.5) with ESMTP id BAA03391; Sat, 2 Aug 1997 01:13:35 +1000 (EST) Message-Id: <199708011513.BAA03391@labs.usn.blaze.net.au> X-Mailer: exmh version 2.0zeta 7/24/97 To: Keith Mitchell cc: hackers@FreeBSD.ORG Subject: Re: Bug in pw? (account/pasword exp dates) In-reply-to: Your message of "Tue, 29 Jul 1997 17:13:05 -0400." <199707292113.RAA14306@weenix.guru.org> X-Face: (W@z~5kg?"+5?!2kHP)+l369.~a@oTl^8l87|/s8"EH?Uk~P#N+Ec~Z&@;'LL!;3?y Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 02 Aug 1997 01:13:35 +1000 From: David Nugent Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >> If I give pw the following command: >> >> pw useradd tuser -P -c "Test User" -e 901944000 -p 869834290 -m -h 0 >> >> everything seems to work except that the account expiration date and the >> password expiration date are set to the same thing (to the -e param). > > I think I found the bug. In pw_pwdpolicy it tests for a -e instead of the -p. > The following patched seemingly fixed the problem. Thanks, I committed this fix to all three branches. Could I suggest in future that this sort of thing be sent into the bugs database via send-pr? I only get to the hackers mailing list if I have time, and if I get too far behind, I'll just delete anything older than a few days to catch up. So there is no guarantees that I'll see it except via gnats - which I do read scrupulously. Regards, David -- David Nugent - Unique Computing Pty Ltd - Melbourne, Australia Voice +61-3-9791-9547 Data/BBS +61-3-9792-3507 3:632/348@fidonet davidn@freebsd.org davidn@blaze.net.au http://www.blaze.net.au/~davidn/