From owner-freebsd-bugs Mon Aug 2 2:30:37 1999 Delivered-To: freebsd-bugs@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id B1E8614CC1; Mon, 2 Aug 1999 02:30:34 -0700 (PDT) (envelope-from des@flood.ping.uio.no) Received: (from des@localhost) by flood.ping.uio.no (8.9.3/8.9.1) id LAA48586; Mon, 2 Aug 1999 11:30:19 +0200 (CEST) (envelope-from des) To: Cc: freebsd-bugs@FreeBSD.ORG Subject: Re: bin/12828: passwd(1) doesn't recognize comments References: <199907270949.CAA82194@freefall.freebsd.org> From: Dag-Erling Smorgrav Date: 02 Aug 1999 11:30:19 +0200 In-Reply-To: 's message of "Tue, 27 Jul 1999 02:49:49 -0700 (PDT)" Message-ID: Lines: 19 X-Mailer: Gnus v5.5/Emacs 19.34 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org writes: > Synopsis: passwd(1) doesn't recognize comments > > Responsible-Changed-From-To: freebsd-bugs->sheldonh > Responsible-Changed-By: sheldonh > Responsible-Changed-When: Tue Jul 27 02:48:34 PDT 1999 > Responsible-Changed-Why: > You're right. vipw handles comments and blank lines correctly, but > passwd does not. I'll take a look. Instead of duplicating code all over the place, you might want to rewrite passwd(1) to use pw(8) as backend. There is an option to pw(8) to have it read a password from a specified file descriptor, so a combination pipe() / fork() / close() / exec() / write() should work fine. DES -- Dag-Erling Smorgrav - des@flood.ping.uio.no To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message