summaryrefslogtreecommitdiff
path: root/libtrivfs
diff options
context:
space:
mode:
authorJames Clarke <jrtc27@jrtc27.com>2015-09-29 18:06:46 +0100
committerJustus Winter <4winter@informatik.uni-hamburg.de>2015-10-05 13:09:16 +0200
commitbf6d5e67e86a059c1ffbde425d0f3f05fd0a0717 (patch)
tree3d5a1f0e64558b9d0b9f4e73905f9fdff53e0b8e /libtrivfs
parent407237da61abdc0c82d91efab392d78b7e464fb4 (diff)
Add missing null checks in libshouldbeinlibc
The getpwnam_r and similar functions only return non-zero on error, but not finding the given name/UID/GID does not count as an error. When they return 0, the value of the result (*result when looking at the arguments in the man pages) still needs to be checked for null. * libshouldbeinlibc/idvec-rep.c (lookup_uid): Check result for null. (lookup_gid): Likewise. * libshouldbeinlibc/idvec-verify.c (verify_passwd): Likewise. (verify_id): Likewise.
Diffstat (limited to 'libtrivfs')
0 files changed, 0 insertions, 0 deletions