summaryrefslogtreecommitdiff
path: root/usr.sbin/tftpd/tftpd.c
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2013-05-07 00:26:35 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2013-05-07 00:26:35 +0000
commit7cd8cd9d1c1ec6a4eb868fbafb40d50381d1d6c8 (patch)
treeff35273fabac763d17541f4ca947a7ae5dc2b371 /usr.sbin/tftpd/tftpd.c
parent3bb026be0839443dd0aa4841c5778cb11230c700 (diff)
getpwnam doesnt set errno on failure, so use errx, not err, to say it
failed.
Diffstat (limited to 'usr.sbin/tftpd/tftpd.c')
-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);