From 64d4009427d5a008673ba57c46d99573ad5f4286 Mon Sep 17 00:00:00 2001 From: Přemysl Janouch
Date: Sat, 7 Dec 2019 21:18:20 +0100 Subject: degesch: fix getpwuid usage The "entry not found" case doesn't have to touch errno. --- degesch.c | 1 + 1 file changed, 1 insertion(+) diff --git a/degesch.c b/degesch.c index 8a1de8f..3f44217 100644 --- a/degesch.c +++ b/degesch.c @@ -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) { -- cgit v1.2.3-70-g09d2