patch-clients_upsset_c 727 B

12345678910111213141516171819202122
  1. $OpenBSD: patch-clients_upsset_c,v 1.8 2009/04/03 15:40:12 sthen Exp $
  2. --- clients/upsset.c.orig Tue Feb 17 09:20:43 2009
  3. +++ clients/upsset.c Wed Mar 18 21:27:43 2009
  4. @@ -192,7 +192,7 @@ static void do_pickups(const char *currfunc)
  5. char hostfn[SMALLBUF];
  6. PCONF_CTX_t ctx;
  7. - snprintf(hostfn, sizeof(hostfn), "%s/hosts.conf", confpath());
  8. + snprintf(hostfn, sizeof(hostfn), "%s/hosts.conf", cgiconfpath());
  9. printf("<FORM METHOD=\"POST\" ACTION=\"upsset.cgi\">\n");
  10. @@ -981,7 +981,7 @@ static void check_conf(void)
  11. char fn[SMALLBUF];
  12. PCONF_CTX_t ctx;
  13. - snprintf(fn, sizeof(fn), "%s/upsset.conf", confpath());
  14. + snprintf(fn, sizeof(fn), "%s/upsset.conf", cgiconfpath());
  15. pconf_init(&ctx, upsset_conf_err);