Let g_access() log the actual error number.
Submitted by: Fabian Keil <fk@fabiankeil.de> PR: 221855 MFC after: 1 week