svn commit: r184177 - head/lib/libc/gen

Andrey Chernov ache at nagual.pp.ru
Wed Oct 22 21:02:20 UTC 2008


On Wed, Oct 22, 2008 at 07:55:12PM +0000, Konstantin Belousov wrote:
> Author: kib
> Date: Wed Oct 22 19:55:12 2008
> New Revision: 184177
> URL: http://svn.freebsd.org/changeset/base/184177
> 
> Log:
>   Remove doubtful structure definition with variable array members.
>   I believe this is not a valid C99 construct.  Use directly calculated
>   offsets into the supplied buffer, using specified members length,
>   to fill appropriate structure.
>   
>   Either use sysctl, or copy the value of the UNAME_x environment
>   variable, instead of unconditionally doing sysctl, and then
>   overriding a returned value with user-specified one.
>   
>   Noted and tested by:	rdivacky

Unfortunately on i386 this change cause segfaults in many programs at once 
(even in make(1))

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


More information about the svn-src-head mailing list