1 // commit 0afef1aa24b784c86ae6121ca39e999824086c7c
2 // preexisting errno should not be interpreted by passwd/group functions
10 int baderr = EOWNERDEAD; // arbitrary absurd error
11 struct passwd *pw, pwbuf;
14 if (getpwnam_r("nonsensical_user", &pwbuf, buf, sizeof buf, &pw) == baderr)
15 t_error("getpwnam_r used preexisting errno for nonexisting user\n");