diff options
Diffstat (limited to 'src/passwd/getpw_r.c')
-rw-r--r-- | src/passwd/getpw_r.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/passwd/getpw_r.c b/src/passwd/getpw_r.c index e8cc811e..0c87ab05 100644 --- a/src/passwd/getpw_r.c +++ b/src/passwd/getpw_r.c @@ -27,6 +27,7 @@ static int getpw_r(const char *name, uid_t uid, struct passwd *pw, char *buf, si } free(line); pthread_setcancelstate(cs, 0); + if (rv) errno = rv; return rv; } |