[Git][NTPsec/ntpsec][master] A warning is appropriate when ntp.conf can't be opened.

Eric S. Raymond gitlab at mg.gitlab.com
Tue Jun 16 13:00:29 UTC 2020



Eric S. Raymond pushed to branch master at NTPsec / ntpsec


Commits:
e2eda5d0 by Eric S. Raymond at 2020-06-16T09:00:09-04:00
A warning is appropriate when ntp.conf can't be opened.

- - - - -


1 changed file:

- ntpd/ntp_scanner.c


Changes:

=====================================
ntpd/ntp_scanner.c
=====================================
@@ -153,6 +153,8 @@ lex_open(
 		stream->fpi = fopen(path, mode);
 		if (NULL == stream->fpi) {
 			free(stream);
+			msyslog(LOG_ERR, "CONFIG: failed to open \'%s\': %s",
+				path, strerror(errno));
 			stream = NULL;
 		}
 	}



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/e2eda5d072d8888e198d81a05700a405229acee0

-- 
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/e2eda5d072d8888e198d81a05700a405229acee0
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/20200616/76e183a3/attachment.htm>


More information about the vc mailing list