Whoa. That should have set off alarm bells when being reviewed. Changing errno return values just because? And a counter-change in another place to put the changed errno back to the original.
I'd accept that from an intern. Any grown-up that did it would get a talking to, though not in public.