1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
Description: Accept "pointtopoint" as a synonym for "pointopoint"
Author: Justin Pryzby <pryzbyj@libra>
Bug-Debian: http://bugs.debian.org/443075
--- a/ifconfig.c
+++ b/ifconfig.c
@@ -643,14 +643,14 @@
spp++;
continue;
}
- if (!strcmp(*spp, "-pointopoint")) {
+ if (!strcmp(*spp, "-pointopoint") || !strcmp(*spp, "-pointtopoint")) {
goterr |= clr_flag(ifr.ifr_name, IFF_POINTOPOINT);
spp++;
if (test_flag(ifr.ifr_name, IFF_POINTOPOINT) > 0)
fprintf(stderr, _("Warning: Interface %s still in POINTOPOINT mode.\n"), ifr.ifr_name);
continue;
}
- if (!strcmp(*spp, "pointopoint")) {
+ if (!strcmp(*spp, "pointopoint") || !strcmp(*spp, "pointtopoint")) {
if (*(spp + 1) != NULL) {
spp++;
safe_strncpy(host, *spp, (sizeof host));
|