diff options
author | Rich Felker <dalias@aerifal.cx> | 2021-02-13 13:59:44 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2021-02-13 13:59:44 -0500 |
commit | cc577d0e058b53df5c0fe2ac17890a41d77e94c5 (patch) | |
tree | 9650c2a8b5dd5ebc415f724b4a1949dd32b26ffe /arch | |
parent | cuserid: don't return truncated results (diff) | |
download | grovel-cc577d0e058b53df5c0fe2ac17890a41d77e94c5.tar.gz grovel-cc577d0e058b53df5c0fe2ac17890a41d77e94c5.tar.xz |
fix misuse of getpwuid_r in cuserid
getpwuid_r can return 0 but without a result in the case where there
was no error but no record exists. in that case cuserid was treating
it as success and copying junk out of pw.pw_name to the output buffer.
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions