[Git][NTPsec/ntpsec][master] Exit if config file fails to open
Richard Laager
gitlab at mg.gitlab.com
Tue Dec 10 14:56:49 UTC 2019
Richard Laager pushed to branch master at NTPsec / ntpsec
Commits:
bbb82f1f by Sami Farin at 2019-12-10T12:34:28Z
Exit if config file fails to open
Now ntpd does not report any errors on config file open and proceeds
as normal after file open has failed.
- - - - -
1 changed file:
- ntpd/ntp_scanner.c
Changes:
=====================================
ntpd/ntp_scanner.c
=====================================
@@ -153,7 +153,9 @@ lex_open(
stream->fpi = fopen(path, mode);
if (NULL == stream->fpi) {
free(stream);
- stream = NULL;
+ msyslog(LOG_ERR, "CONFIG: failed to open \'%s\': %s",
+ path, strerror(errno));
+ exit(1);
}
}
return stream;
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/bbb82f1fc4ce3790279f71cf0abefd1babcf92fb
--
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/bbb82f1fc4ce3790279f71cf0abefd1babcf92fb
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20191210/f2722887/attachment.htm>
More information about the vc
mailing list