1 | --- config.c.orig 2007-09-10 22:39:48.000000000 +0200 |
---|
2 | +++ config.c 2007-12-17 12:26:10.000000000 +0100 |
---|
3 | @@ -267,7 +267,7 @@ |
---|
4 | |
---|
5 | static const char *config_def_script(void) |
---|
6 | { |
---|
7 | - return "/etc/vpnc/vpnc-script"; |
---|
8 | + return "/opt/local/etc/vpnc/vpnc-script"; |
---|
9 | } |
---|
10 | |
---|
11 | static const char *config_def_pid_file(void) |
---|
12 | @@ -538,7 +538,7 @@ |
---|
13 | { |
---|
14 | char *realname; |
---|
15 | |
---|
16 | - asprintf(&realname, "%s%s%s", index(name, '/') ? "" : "/etc/vpnc/", name, add_dot_conf ? ".conf" : ""); |
---|
17 | + asprintf(&realname, "%s%s%s", index(name, '/') ? "" : "/opt/local/etc/vpnc/", name, add_dot_conf ? ".conf" : ""); |
---|
18 | return realname; |
---|
19 | } |
---|
20 | |
---|
21 | @@ -757,8 +757,8 @@ |
---|
22 | } |
---|
23 | |
---|
24 | if (!got_conffile) { |
---|
25 | - read_config_file("/etc/vpnc/default.conf", config, 1); |
---|
26 | - read_config_file("/etc/vpnc.conf", config, 1); |
---|
27 | + read_config_file("/opt/local/etc/vpnc/default.conf", config, 1); |
---|
28 | + read_config_file("/opt/local/etc/vpnc.conf", config, 1); |
---|
29 | } |
---|
30 | |
---|
31 | if (!print_config) { |
---|