upgrade 6-STABLE to -CURRENT on sparc64 renders box unusable
Scott Long
scottl at samsco.org
Tue Jul 10 21:27:06 UTC 2007
Ed Schouten wrote:
> * Michiel Boland <michiel at boland.org> wrote:
>> --- __getosreldate.c.orig 2007-07-10 22:29:02.000000000 +0200
>> +++ __getosreldate.c 2007-07-10 22:28:20.000000000 +0200
>> @@ -42,13 +42,10 @@
>> int
>> __getosreldate(void)
>> {
>> - static int osreldate;
>> + int osreldate;
>> size_t len;
>> int oid[2];
>> int error, osrel;
>> -
>> - if (osreldate != 0)
>> - return (osreldate);
>>
>> oid[0] = CTL_KERN;
>> oid[1] = KERN_OSRELDATE;
>
> Isn't the problem solved by just initializing osreldate with zero?
>
I'm pretty sure that the osreldate should be automatically initialized
to zero since it's static. I wonder if this has been broken on sparc64
somehow.
Scott
More information about the freebsd-current
mailing list