patch-config_c 663 B

1234567891011121314151617
  1. $OpenBSD: patch-config_c,v 1.1 2016/01/23 18:01:07 ajacoutot Exp $
  2. --- config.c.orig Sat Jan 23 18:59:43 2016
  3. +++ config.c Sat Jan 23 18:59:34 2016
  4. @@ -128,10 +128,10 @@ load_config(const char *config_file, bool verbose, t_c
  5. /* 2. "/etc/repmgr.conf" */
  6. if (verbose == true)
  7. {
  8. - log_notice(_("looking for configuration file in /etc\n"));
  9. + log_notice(_("looking for configuration file in ${SYSCONFDIR}\n"));
  10. }
  11. - snprintf(config_file_path, MAXPGPATH, "/etc/%s", CONFIG_FILE_NAME);
  12. + snprintf(config_file_path, MAXPGPATH, "${SYSCONFDIR}/%s", CONFIG_FILE_NAME);
  13. if (stat(config_file_path, &stat_config) == 0)
  14. {
  15. config_file_found = true;