1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
$NetBSD: patch-aa,v 1.3 2006/01/03 21:48:17 hubertf Exp $
--- config.c.orig 2005-05-01 16:06:36.000000000 -0400
+++ config.c
@@ -125,7 +125,7 @@ static const char *config_def_app_versio
static const char *config_def_script(void)
{
- return "/etc/vpnc/vpnc-script";
+ return PKG_SYSCONFDIR "/vpnc-script";
}
static const char *config_def_pid_file(void)
@@ -325,7 +325,7 @@ static void read_config_file(const char
if (index(name, '/'))
realname = strdup(name);
else
- asprintf(&realname, "/etc/vpnc/%s", name);
+ asprintf(&realname, PKG_SYSCONFDIR "/vpnc/%s", name);
f = fopen(realname, "r");
if (missingok && f == NULL && errno == ENOENT) {
free(realname);
@@ -520,8 +520,8 @@ void do_config(int argc, char **argv)
}
if (!got_conffile) {
- read_config_file("/etc/vpnc/default.conf", config, 1);
- read_config_file("/etc/vpnc.conf", config, 1);
+ read_config_file(PKG_SYSCONFDIR "/vpnc/default.conf", config, 1);
+ read_config_file(PKG_SYSCONFDIR "/vpnc.conf", config, 1);
}
if (!print_config) {
|