>> > One reason adding -g doesn't work at times is if the kernel is
>> > recompiled by a person with a different length username. vers.c
>> > is produced with a string which is a different length which screws
>> > up the offsets.
>> >
>> > Maybe newvers.sh should pad usernames to the legal max? Maybe we should
>> > warn people to touch vers.c after editing the Makefile?
>>
>> That would be really helpful to us actually and I imagine lots of people.
>> In fact, you don't need to pad the username, just add the right number of
>> zeroes to the end of the string, eg.
>
>Any objections to the patch below?
Yes. It bloats the kernel and only fixed one cause of the problem.
>And a related question: why not define ostype[], et.al. as "const" ?
It would cause a cast-qual warning when SYSCTL_STRING() casts away the
"const". Casting away the "const" is OK for the CTLFLG_RD case but not
for the CTLFLAG_RW case.
Bruce
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message