summary refs log tree commit diff
path: root/pkgs/tools/networking/network-manager/l2tp/fix-paths.patch
blob: 531672c3936253b9842dd8e1fea0606d09927b11 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
diff --git a/shared/utils.c b/shared/utils.c
index c978a1f..d2c36cd 100644
--- a/shared/utils.c
+++ b/shared/utils.c
@@ -52,7 +52,7 @@ nm_find_ipsec (void)
 {
 	static const char *ipsec_binary_paths[] =
 		{
-			"/sbin/ipsec",
+			"@strongswan@/bin/ipsec",
 			"/usr/sbin/ipsec",
 			"/usr/local/sbin/ipsec",
 			"/sbin/strongswan",
@@ -77,7 +77,7 @@ nm_find_l2tpd (void)
 {
 	static const char *l2tp_binary_paths[] =
 		{
-			"/sbin/xl2tpd",
+			"@xl2tpd@/bin/xl2tpd",
 			"/usr/sbin/xl2tpd",
 			"/usr/local/sbin/xl2tpd",
 			NULL