diff options
Diffstat (limited to 'meta/recipes-extended/net-tools/net-tools/Bug_443075-ifconfig.c-pointtopoint_spelling.patch')
-rw-r--r-- | meta/recipes-extended/net-tools/net-tools/Bug_443075-ifconfig.c-pointtopoint_spelling.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/meta/recipes-extended/net-tools/net-tools/Bug_443075-ifconfig.c-pointtopoint_spelling.patch b/meta/recipes-extended/net-tools/net-tools/Bug_443075-ifconfig.c-pointtopoint_spelling.patch new file mode 100644 index 0000000000..74d74668ce --- /dev/null +++ b/meta/recipes-extended/net-tools/net-tools/Bug_443075-ifconfig.c-pointtopoint_spelling.patch | |||
@@ -0,0 +1,26 @@ | |||
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)); | ||