degesch: fix getpwuid usage

The "entry not found" case doesn't have to touch errno.
This commit is contained in:
Přemysl Eric Janouch 2019-12-07 21:18:20 +01:00
parent 4179a9bd49
commit 64d4009427
Signed by: p
GPG Key ID: A0420B94F92B9493
1 changed files with 1 additions and 0 deletions

View File

@ -5523,6 +5523,7 @@ irc_autofill_user_info (struct server *s, struct error **e)
return true;
// Read POSIX user info and fill the configuration if needed
errno = 0;
struct passwd *pwd = getpwuid (geteuid ());
if (!pwd)
{