degesch: fix getpwuid usage
The "entry not found" case doesn't have to touch errno.
This commit is contained in:
parent
4179a9bd49
commit
64d4009427
|
@ -5523,6 +5523,7 @@ irc_autofill_user_info (struct server *s, struct error **e)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
// Read POSIX user info and fill the configuration if needed
|
// Read POSIX user info and fill the configuration if needed
|
||||||
|
errno = 0;
|
||||||
struct passwd *pwd = getpwuid (geteuid ());
|
struct passwd *pwd = getpwuid (geteuid ());
|
||||||
if (!pwd)
|
if (!pwd)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue