Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Mar 2002 21:46:57 +0300
From:      "Andrey A. Chernov" <ache@nagual.pp.ru>
To:        Alexey Zelkin <phantom@FreeBSD.org>
Cc:        audit@FreeBSD.org
Subject:   Re: safety checking for catgets (NLS catalogs)
Message-ID:  <20020302184656.GA32218@nagual.pp.ru>
In-Reply-To: <20020302202437.A1078@gate.sim.ionidea.com>
References:  <20020302202437.A1078@gate.sim.ionidea.com>

next in thread | previous in thread | raw e-mail | index | archive | help
I dislike whole idea, it just add yet one runtime slowness. Suser programs
authors should just check their translations more accurately.

Better way to solve it is to add external check tool to run through all
existen catalogs for given program, do it once and not each run time.

Translation strings are per program version constants and not changed each
run time, so there is absolutely no needs to check them each run time.

On Sat, Mar 02, 2002 at 20:24:37 +0200, Alexey Zelkin wrote:

> +    while (*src != '\0' && *dflt != '\0') {
> +	while (1) {
> +	    if (*dflt != *src)
> +		return (1);
> +	    if (strchr(VALID_CONV_SPECIFIERS, *dflt))

*dflt can be '\0' here and strchr() will succeed.

> +		break;
> +	    src++;
> +	    dflt++;
> +	}

-- 
Andrey A. Chernov
http://ache.pp.ru/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-audit" in the body of the message




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