From 03436e2c758390d7fce83e5fe9b28c504351f320 Mon Sep 17 00:00:00 2001 From: claudio Date: Sun, 13 Jul 2014 17:53:41 +0000 Subject: [PATCH] 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 --- usr.sbin/identd/identd.c | 4 ++-- 1 file 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 @@ -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"); -- 2.20.1