aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p@janouch.name>2019-12-07 21:18:20 +0100
committerPřemysl Janouch <p@janouch.name>2019-12-07 21:18:20 +0100
commit64d4009427d5a008673ba57c46d99573ad5f4286 (patch)
treefe1c0efe2f269771c81b51a2b90928cdf00cbe12
parent4179a9bd498bd8869c14aed8204503d92ce9dbd7 (diff)
downloadxK-64d4009427d5a008673ba57c46d99573ad5f4286.tar.gz
xK-64d4009427d5a008673ba57c46d99573ad5f4286.tar.xz
xK-64d4009427d5a008673ba57c46d99573ad5f4286.zip
degesch: fix getpwuid usage
The "entry not found" case doesn't have to touch errno.
-rw-r--r--degesch.c1
1 files changed, 1 insertions, 0 deletions
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)
{