Source: girara
Version: 0.1.2-1

The errno(3) manpage reads: “a function that succeeds _is_ allowed to change errno. […] errno is never set to zero by any system call or library function.”

read_pwd_info() in tests/test_utils.c sets errno to 0 only before the first call to getpwent(), but not before subsequent calls to the function. One of the getpwent() calls (or other function calls in the loop) could modify errno despite being successful, making the test fail.

--
Jakub Wilk



--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to