degesch: fix getpwuid usage

The "entry not found" case doesn't have to touch errno.
This commit is contained in:
2019-12-07 21:18:20 +01:00
parent 4179a9bd49
commit 64d4009427

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)
{