summaryrefslogtreecommitdiffstats
path: root/usr.sbin/identd
diff options
context:
space:
mode:
authorclaudio <claudio@openbsd.org>2014-07-13 17:53:41 +0000
committerclaudio <claudio@openbsd.org>2014-07-13 17:53:41 +0000
commit03436e2c758390d7fce83e5fe9b28c504351f320 (patch)
treebd7d4f1b5dc47837911960e95ec50cf864c260ca /usr.sbin/identd
parentDocument KERN_PROC_NOBROADKILL (diff)
downloadwireguard-openbsd-03436e2c758390d7fce83e5fe9b28c504351f320.tar.xz
wireguard-openbsd-03436e2c758390d7fce83e5fe9b28c504351f320.zip
Use errx() after getpwnam() failure since errno may not be set.
All other privsep / privdrop daemons do this the same way. OK florian@ some time ago
Diffstat (limited to 'usr.sbin/identd')
-rw-r--r--usr.sbin/identd/identd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/identd/identd.c b/usr.sbin/identd/identd.c
index a70d165fa41..7dc119a5b40 100644
--- a/usr.sbin/identd/identd.c
+++ b/usr.sbin/identd/identd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: identd.c,v 1.25 2014/07/08 17:12:37 tobias Exp $ */
+/* $OpenBSD: identd.c,v 1.26 2014/07/13 17:53:41 claudio Exp $ */
/*
* Copyright (c) 2013 David Gwynne <dlg@openbsd.org>
@@ -275,7 +275,7 @@ main(int argc, char *argv[])
pw = getpwnam(IDENTD_USER);
if (pw == NULL)
- err(1, "no %s user", IDENTD_USER);
+ errx(1, "no %s user", IDENTD_USER);
if (!debug && daemon(1, 0) == -1)
err(1, "daemon");