Andrew Geissler | 635e0e4 | 2020-08-21 15:58:33 -0500 | [diff] [blame] | 1 | Description: Accept "pointtopoint" as a synonym for "pointopoint" |
| 2 | Bug-Debian: https://bugs.debian.org/443075 |
| 3 | Author: Justin Pryzby <pryzbyj@libra> |
| 4 | |
| 5 | Upstream-Status: Pending |
| 6 | Signed-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)); |