ci: fix GHA's rebuild-xxx: 5001+ labels (#360754)
[NixPkgs.git] / pkgs / by-name / ne / networkmanager-l2tp / fix-paths.patch
blobd9ee0dd49975eac15f0dbb508f9193f4178d3672
1 diff --git a/shared/utils.c b/shared/utils.c
2 index 453e277..28716a5 100644
3 --- a/shared/utils.c
4 +++ b/shared/utils.c
5 @@ -39,7 +39,7 @@ check_ipsec_daemon(const char *path)
6 const char *
7 nm_find_ipsec(void)
9 - static const char *ipsec_binary_paths[] = {"/usr/bin/ipsec",
10 + static const char *ipsec_binary_paths[] = {"@strongswan@/bin/ipsec",
11 "/sbin/ipsec",
12 "/usr/sbin/ipsec",
13 "/usr/local/sbin/ipsec",
14 @@ -70,7 +70,7 @@ nm_find_l2tpd(NML2tpL2tpDaemon *l2tp_daemon)
15 "/usr/local/sbin/kl2tpd",
16 NULL};
18 - static const char *xl2tp_binary_paths[] = {"/usr/bin/xl2tpd",
19 + static const char *xl2tp_binary_paths[] = {"@xl2tpd@/bin/xl2tpd",
20 "/sbin/xl2tpd",
21 "/usr/sbin/xl2tpd",
22 "/usr/local/sbin/xl2tpd",