Searched hist:"00 e080be77da7e6aac2c46b23c08010ca1ab8a16" (Results 1 – 1 of 1) sorted by relevance
/freebsd/lib/libc/gen/ |
H A D | pututxline.c | diff 00e080be77da7e6aac2c46b23c08010ca1ab8a16 Wed Apr 17 23:08:15 CEST 2013 Jilles Tjoelker <jilles@FreeBSD.org> pututxline: Don't set errno=0 in subfunctions.
The functions utx_active_add(), utx_active_remove(), utx_lastlogin_add() and utx_log_add() set errno to 0 if they are successful. This not only violates POSIX if pututxline() is successful, but may also overwrite a valid error with 0 if, for example, utx_lastlogin_add() fails while utx_log_add() succeeds.
Reviewed by: ed
|