1 From Rawhide. Fix for when the wrong device information is shown.
3 diff -Naur net-tools-1.60.orig/nameif.c net-tools-1.60/nameif.c
4 --- net-tools-1.60.orig/nameif.c 2000-10-18 17:26:29.000000000 +0000
5 +++ net-tools-1.60/nameif.c 2003-09-12 22:48:57.000000000 +0000
10 - struct change *next,**pprev;
11 + struct change *next;
13 char ifname[IFNAMSIZ+1];
18 if (parsemac(p,ch->mac) < 0)
19 complain(_("cannot parse MAC `%s' at %s"), p, pos);
21 - clist->pprev = &ch->next;
31 - fprintf(stderr, _("usage: nameif [-c configurationfile] [-s] {ifname macaddress}"));
32 + fprintf(stderr, _("usage: nameif [-c configurationfile] [-s] {ifname macaddress}\n"));
41 - *ch->pprev = ch->next;
44 if (strcmp(p, ch->ifname)) {
45 if (setname(p, ch->ifname) < 0)
46 complain(_("cannot change name of %s to %s: %s"),
47 p, ch->ifname, strerror(errno));
54 struct change *ch = clist;
56 - warning(_("interface '%s' not found"), ch->ifname);
58 + warning(_("interface '%s' not found"), ch->ifname);