From owner-freebsd-hackers Fri Oct 12 3:52:34 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from snark.rinet.ru (snark.rinet.ru [195.54.192.73]) by hub.freebsd.org (Postfix) with ESMTP id 33EC937B401 for ; Fri, 12 Oct 2001 03:52:31 -0700 (PDT) Received: (from yar@localhost) by snark.rinet.ru (8.11.6/8.11.6) id f9CAqS551160 for hackers@freebsd.org; Fri, 12 Oct 2001 14:52:28 +0400 (MSD) (envelope-from yar) Date: Fri, 12 Oct 2001 14:52:28 +0400 From: Yar Tikhiy To: hackers@freebsd.org Subject: Valid user name Message-ID: <20011012145227.D46577@snark.rinet.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.22.1i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi there, Now adduser(8) and pw(8) differ in what a valid user name is. Adduser(8) enforces a user name to match the /^[a-z0-9_][a-z0-9_\-]*$/ regexp. OTOH, pw(8) uses the Good Old Wrong Way of checking validity-- it checks a user name against a list of *invalid* characters. I'm going to fix pw(8) so its view on valid user names is consistent with that of adduser(8). Is there any reason to omit the period ('.') from the list of valid characters? With the period included, the list would conform to POSIX's definition of a valid user name. -- Yar To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message