Not that this will instil a huge amount of confidence, but I filed a bug about a XNU kernel syscal that returned the wrong error code. They shipped a fix two years later and closer the ticket.
If it was just changing a constant (which is what GP implied), that would probably not constitute sufficient creative output to be subject to copyright.