NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/43587: stupid error message during boot from sysctl if no COMPAT40 in kernel



Hi - it took some time to get here again for me ...

I'm just preparing the upgrade to 6.1 and had a look at this again.

Your patch to kill the error output for optional settings sounds like the better aproach as reading and check, if already set.
There will be less side effects now and in the future.

But I think only the EPERM case printing should be avoided.
(Accedently EPERM can happen in three cases - according to the manual, but this is still better than suppressing all other kind of errors too.)

So useing
  if (!opt || errno != EPERM)
should be better than just
  if (!opt)
in both cases.



Best regards.

W. Stukenbrock





Home | Main Index | Thread Index | Old Index