blob: 74d74668ceaeed039a2b4b0f5ded1a93d44b1830 [file] [log] [blame]
Andrew Geissler635e0e42020-08-21 15:58:33 -05001Description: Accept "pointtopoint" as a synonym for "pointopoint"
2Bug-Debian: https://bugs.debian.org/443075
3Author: Justin Pryzby <pryzbyj@libra>
4
5Upstream-Status: Pending
6Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
7
8--- a/ifconfig.c
9+++ b/ifconfig.c
10@@ -644,14 +644,14 @@
11 spp++;
12 continue;
13 }
14- if (!strcmp(*spp, "-pointopoint")) {
15+ if (!strcmp(*spp, "-pointopoint") || !strcmp(*spp, "-pointtopoint")) {
16 goterr |= clr_flag(ifr.ifr_name, IFF_POINTOPOINT);
17 spp++;
18 if (test_flag(ifr.ifr_name, IFF_POINTOPOINT) > 0)
19 fprintf(stderr, _("Warning: Interface %s still in POINTOPOINT mode.\n"), ifr.ifr_name);
20 continue;
21 }
22- if (!strcmp(*spp, "pointopoint")) {
23+ if (!strcmp(*spp, "pointopoint") || !strcmp(*spp, "pointtopoint")) {
24 if (*(spp + 1) != NULL) {
25 spp++;
26 safe_strncpy(host, *spp, (sizeof host));