Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Apr 2007 22:18:25 +0400
From:      Andrey Chernov <ache@FreeBSD.org>
To:        Alfred Perlstein <alfred@FreeBSD.org>
Cc:        cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/usr.sbin/sysinstall main.c
Message-ID:  <20070430181824.GA83415@nagual.pp.ru>
In-Reply-To: <20070430180043.GK13868@elvis.mu.org>
References:  <200704301516.l3UFGJbu019162@repoman.freebsd.org> <20070430180043.GK13868@elvis.mu.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Apr 30, 2007 at 11:00:43AM -0700, Alfred Perlstein wrote:
> * Andrey A. Chernov <ache@FreeBSD.org> [070430 08:17] wrote:
> > ache        2007-04-30 15:16:19 UTC
> > 
> >   FreeBSD src repository
> > 
> >   Modified files:
> >     usr.sbin/sysinstall  main.c 
> >   Log:
> >   Preparing for upcoming POSIXed putenv() rewrite:
> >   don't allow const as putenv() arg, dup it
> >   
> >   Revision  Changes    Path
> >   1.75      +1 -1      src/usr.sbin/sysinstall/main.c
> 
> Maybe this was mentioned on the lists, but couldn't there be some
> kind of define that old code could use like #define BSD_PUTENV?

Why? We must follow standards to stay in line with possible concurrents, 
and we already are several years later with that. Even in case some 
applications will be found incompatible, they forced to follow standards 
too to continue works in the modern environment.

> I'm concerned that all these changes could lead to security
> holes.

Please be specific. Which changes exactly you means? Changes to 
applications works with any putenv() kind, they are just portablility 
fixes, no holes there. Changes to the library aren't under the question 
too: you can just directly modify **environ variable from your own code 
bypassing any setenv and putenv - they are just convenient interface.

-- 
http://ache.pp.ru/



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