From 0146b59b14a2069a1e2eeab098d29461b5892fd1 Mon Sep 17 00:00:00 2001 From: dlg Date: Tue, 7 May 2013 00:26:34 +0000 Subject: getpwnam doesnt set errno on failure, so use errx, not err, to say it failed. --- usr.sbin/tftpd/tftpd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin/tftpd') 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 @@ -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); -- cgit v1.2.3-59-g8ed1b