diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2004-12-22 05:34:53 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2004-12-22 05:34:53 +0000 |
commit | f74243947e96f441de7b10dbd803c27a4f857abd (patch) | |
tree | d893a8371432de894645fa189e80fb382b0ac467 /usr.sbin | |
parent | ebd68ee3a8cb04d31af330fbc0dfbe84a4ecafa4 (diff) |
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 <e@molioner.dk>
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/ntpd/ntp.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 <henning@openbsd.org> @@ -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); |