From cd15a535c6e2c200b2c51e4eb1059f6ead01b769 Mon Sep 17 00:00:00 2001 From: henning <> Date: Wed, 22 Dec 2004 05:34:52 +0000 Subject: [PATCH] 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 --- src/usr.sbin/ntpd/ntp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/usr.sbin/ntpd/ntp.c b/src/usr.sbin/ntpd/ntp.c index f7056b28..2800a535 100644 --- a/src/usr.sbin/ntpd/ntp.c +++ b/src/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);