aa0c1124ca
From maintainer Jonathon Sisson, tweaked by me
32 lines
1.0 KiB
Plaintext
32 lines
1.0 KiB
Plaintext
$OpenBSD: patch-src_conf_c,v 1.4 2012/04/12 10:03:19 dcoppa Exp $
|
|
--- src/conf.c.orig Sun Mar 18 20:26:26 2012
|
|
+++ src/conf.c Thu Apr 12 11:36:49 2012
|
|
@@ -88,23 +88,23 @@ const char *getStrConf(param_t param)
|
|
case CERTIFICATE:
|
|
setting = config_lookup(&configuration, "certificate");
|
|
if (!setting)
|
|
- return "/etc/umurmur/certificate.crt";
|
|
+ return "${SYSCONFDIR}/umurmur/certificate.crt";
|
|
else {
|
|
if ((strsetting = config_setting_get_string(setting)) != NULL)
|
|
return strsetting;
|
|
else
|
|
- return "/etc/umurmur/certificate.crt";
|
|
+ return "${SYSCONFDIR}/umurmur/certificate.crt";
|
|
}
|
|
break;
|
|
case KEY:
|
|
setting = config_lookup(&configuration, "private_key");
|
|
if (!setting)
|
|
- return "/etc/umurmur/private_key.key";
|
|
+ return "${SYSCONFDIR}/umurmur/private_key.key";
|
|
else {
|
|
if ((strsetting = config_setting_get_string(setting)) != NULL)
|
|
return strsetting;
|
|
else
|
|
- return "/etc/umurmur/private_key.key";
|
|
+ return "${SYSCONFDIR}/umurmur/private_key.key";
|
|
}
|
|
break;
|
|
case PASSPHRASE:
|