[Git][NTPsec/ntpsec][master] Revert "Exit if config file fails to open"

Eric S. Raymond gitlab at mg.gitlab.com
Mon Jun 15 19:01:15 UTC 2020



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


Commits:
22842e6f by Eric S. Raymond at 2020-06-15T14:57:12-04:00
Revert "Exit if config file fails to open"

This reversion resolves GitLab issue #649: /etc/ntp.d/ is not scanned
if /etc/ntp.conf fails to be opened.  Designer's intention is that if
ntp.conf does not exist or is inaccessible, configuration files in
ntp.d should still be parsed.

- - - - -


1 changed file:

- ntpd/ntp_scanner.c


Changes:

=====================================
ntpd/ntp_scanner.c
=====================================
@@ -153,9 +153,7 @@ 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));
-			exit(1);
+			stream = NULL;
 		}
 	}
 	return stream;



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

-- 
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/22842e6fe0455572598e35222d63b27f9ddeb2cb
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/20200615/5c69826d/attachment.htm>


More information about the vc mailing list