pwd.h has incorrect prototype for getpwnam_r and getpwuid_r
For unknown reasons, the prototypes under _POSIX_PTHREAD_SEMANTICS in pwd.h use int as the fourth argument. POSIX says this should be size_t. In fact, our declarations of the __posix_xxx functions are correct in this regard. This problem has existed for at least 10 years; its origin is unknown. See http://pubs.opengroup.org/onlinepubs/009695399/functions/getpwnam.html.
Updated by Electric Monk almost 7 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
commit 750b79c78c780208c50864106db6ec3fc19a664b Author: Keith M Wesolowski <firstname.lastname@example.org> Date: 2014-11-25T16:08:31.000Z 5363 pwd.h has incorrect prototype for getpwnam_r and getpwuid_r Reviewed by: Robert Mustacchi <email@example.com> Reviewed by: Andy Stormont <firstname.lastname@example.org> Reviewed by: Igor Kozhukhov <email@example.com> Reviewed by: Dan McDonald <firstname.lastname@example.org> Reviewed by: Marcel Telka <email@example.com> Approved by: Richard Lowe <firstname.lastname@example.org>