diff options
author | dlg <dlg@openbsd.org> | 2013-05-07 00:26:34 +0000 |
---|---|---|
committer | dlg <dlg@openbsd.org> | 2013-05-07 00:26:34 +0000 |
commit | 0146b59b14a2069a1e2eeab098d29461b5892fd1 (patch) | |
tree | 25f5b5e51bb84318efac26798c650b31c65fcdd0 /usr.sbin/tftpd | |
parent | Document new MODPERL_ADJ_FILES and MODPERL_BIN_ADJ variables. (diff) | |
download | wireguard-openbsd-0146b59b14a2069a1e2eeab098d29461b5892fd1.tar.xz wireguard-openbsd-0146b59b14a2069a1e2eeab098d29461b5892fd1.zip |
getpwnam doesnt set errno on failure, so use errx, not err, to say it
failed.
Diffstat (limited to 'usr.sbin/tftpd')
-rw-r--r-- | usr.sbin/tftpd/tftpd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/tftpd/tftpd.c b/usr.sbin/tftpd/tftpd.c index 8eab5afb9f4..1d4a4042f7c 100644 --- a/usr.sbin/tftpd/tftpd.c +++ b/usr.sbin/tftpd/tftpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tftpd.c,v 1.13 2013/03/17 09:48:36 dlg Exp $ */ +/* $OpenBSD: tftpd.c,v 1.14 2013/05/07 00:26:34 dlg Exp $ */ /* * Copyright (c) 2012 David Gwynne <dlg@uq.edu.au> @@ -326,7 +326,7 @@ main(int argc, char *argv[]) pw = getpwnam("_tftpd"); if (pw == NULL) - err(1, "no _tftpd user"); + errx(1, "no _tftpd user"); if (!debug) { openlog(__progname, LOG_PID|LOG_NDELAY, LOG_DAEMON); |