chiark / gitweb /
sysusers: always treat ENOENT as entry-not-found when doing NSS calls
authorLennart Poettering <lennart@poettering.net>
Fri, 13 Jun 2014 17:24:11 +0000 (19:24 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 13 Jun 2014 18:11:59 +0000 (20:11 +0200)
commitb0284aba93e8ccd415da5bbee86d84c12b1b9856
tree04e5960d774f1eb83ae8fc434ec19e4f697b0fbf
parentb532bdeae9b13fe93a54850f5e7f99c753bda6fa
sysusers: always treat ENOENT as entry-not-found when doing NSS calls

For most NSS calls it is documented that they return NULL + errno=0 when
an entry is not found. However, in reality it appears to be common to
return NULL + errno=ENOENT, instead. Handle that correctly, and don't
consider ENOENT a systematic error.
src/sysusers/sysusers.c