Closed pothos closed 3 months ago
Tested it and it doesn't panic anymore as wanted. Reading the glibc code I don't see errno
being set up for this case. I will remove set_errno(Errno(libc::ENOENT));
and maybe I think we should also skip setting errno
. Or we could use set_errno(Errno(0))
to make this explicit.
Thanks for the test! I've switched back to my initial version which was to set ENOENT
. The man page also says: On failure, these functions errno set to indicate the error.
Thanks!
This is now released in c-gull 0.16.1.
getent
.)