From owner-freebsd-i18n Wed May 9 4:55:33 2001 Delivered-To: freebsd-i18n@freebsd.org Received: from gelemna.org (cc466188-a.pinev1.in.home.com [24.17.49.208]) by hub.freebsd.org (Postfix) with ESMTP id 616D837B422 for ; Wed, 9 May 2001 04:55:31 -0700 (PDT) (envelope-from croyle@gelemna.org) Received: (from croyle@localhost) by gelemna.org (8.11.3/8.11.3) id f49BtSC68371; Wed, 9 May 2001 06:55:28 -0500 (EST) (envelope-from croyle@gelemna.org) To: Kris Kennaway Cc: i18n@freebsd.org Subject: Re: chpass patch to disallow non-printable characters in the passwd file References: <20010509131550.A984@nebula.cybercable.fr> <20010509041914.A36212@xor.obsecurity.org> From: Don Croyle Date: 09 May 2001 06:55:27 -0500 Organization: Minimal at best In-Reply-To: Kris Kennaway's message of "Wed, 9 May 2001 04:19:14 -0700" Message-ID: <86snien3dc.fsf@emerson.gelemna.org> Lines: 19 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Kris Kennaway writes: > On Wed, May 09, 2001 at 01:15:50PM +0200, Maxime Henrion wrote: > > Hi, > > > > Here is another patch from OpenBSD taken from Kris mailbox. It prevents > > users from putting non-printable characters in the passwd file. > > I'm not sure whether isprint() is the canonical way to check this in > the face of different locales. Can someone confirm the correct way to > do this? It's the reason that isprint and its relatives exist. See SUSv2. In our implementation, it's ultimately a call to __maskrune, so it will always check against the user's current locale. -- I've always wanted to be a dilettante, but I've never quite been ready to make the commitment. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-i18n" in the body of the message