diff options
author | claudio <claudio@openbsd.org> | 2014-07-13 17:53:41 +0000 |
---|---|---|
committer | claudio <claudio@openbsd.org> | 2014-07-13 17:53:41 +0000 |
commit | 03436e2c758390d7fce83e5fe9b28c504351f320 (patch) | |
tree | bd7d4f1b5dc47837911960e95ec50cf864c260ca /usr.sbin/identd | |
parent | Document KERN_PROC_NOBROADKILL (diff) | |
download | wireguard-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.c | 4 |
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"); |