Skip site navigation (1)Skip section navigation (2)
Date:      09 May 2001 06:55:27 -0500
From:      Don Croyle <croyle@gelemna.org>
To:        Kris Kennaway <kris@obsecurity.org>
Cc:        i18n@freebsd.org
Subject:   Re: chpass patch to disallow non-printable characters in the passwd file
Message-ID:  <86snien3dc.fsf@emerson.gelemna.org>
In-Reply-To: Kris Kennaway's message of "Wed, 9 May 2001 04:19:14 -0700"
References:  <20010509131550.A984@nebula.cybercable.fr> <20010509041914.A36212@xor.obsecurity.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Kris Kennaway <kris@obsecurity.org> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86snien3dc.fsf>