summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2014-07-13 17:53:42 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2014-07-13 17:53:42 +0000
commit4fe140dae712afc08bfe6b053a47040bf93d8ce1 (patch)
tree4a1e3b199f7f656000f3009daba7d8852f170719 /usr.sbin
parent60c48970efb7b63f90b0f874670e081f9540e2f4 (diff)
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')
-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");