summaryrefslogtreecommitdiffstats
path: root/usr.sbin/tftpd
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2013-05-07 00:26:34 +0000
committerdlg <dlg@openbsd.org>2013-05-07 00:26:34 +0000
commit0146b59b14a2069a1e2eeab098d29461b5892fd1 (patch)
tree25f5b5e51bb84318efac26798c650b31c65fcdd0 /usr.sbin/tftpd
parentDocument new MODPERL_ADJ_FILES and MODPERL_BIN_ADJ variables. (diff)
downloadwireguard-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.c4
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);