From f74243947e96f441de7b10dbd803c27a4f857abd Mon Sep 17 00:00:00 2001 From: Henning Brauer Date: Wed, 22 Dec 2004 05:34:53 +0000 Subject: if our first getpwnam(), testing for NTPD_USER, succeeded, but the second returns NULL, we don't need loooong explanations, but at least some indicator what went wrong, From: Michael Knudsen --- usr.sbin/ntpd/ntp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin') diff --git a/usr.sbin/ntpd/ntp.c b/usr.sbin/ntpd/ntp.c index f7056b2802c..2800a535063 100644 --- a/usr.sbin/ntpd/ntp.c +++ b/usr.sbin/ntpd/ntp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ntp.c,v 1.44 2004/12/13 12:39:15 dtucker Exp $ */ +/* $OpenBSD: ntp.c,v 1.45 2004/12/22 05:34:52 henning Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer @@ -90,7 +90,7 @@ ntp_main(int pipe_prnt[2], struct ntpd_conf *nconf) fatal("getservbyname"); if ((pw = getpwnam(NTPD_USER)) == NULL) - fatal(NULL); + fatal("getpwnam"); if ((nullfd = open(_PATH_DEVNULL, O_RDWR, 0)) == -1) fatal(NULL); -- cgit v1.2.3