]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blame - net-tools/patches/net-tools-1.60-return.patch
Move all packages to root.
[people/ms/ipfire-3.x.git] / net-tools / patches / net-tools-1.60-return.patch
CommitLineData
236898d6
MT
1--- net-tools-1.60/nameif.c.return 2004-08-03 18:01:37.000000000 +0900
2+++ net-tools-1.60/nameif.c 2004-08-03 18:03:37.000000000 +0900
3@@ -27,6 +27,7 @@
4 const char *fname = default_conf;
5 int use_syslog;
6 int ctl_sk = -1;
7+int frag = 0;
8
9 void err(char *msg)
10 {
11@@ -288,13 +289,15 @@
12 while (clist) {
13 struct change *ch = clist;
14 clist = clist->next;
15- if (!ch->found)
16+ if (!ch->found){
17 warning(_("interface '%s' not found"), ch->ifname);
18+ frag = 1;
19+ }
20 free(ch);
21 }
22
23 if (use_syslog)
24 closelog();
25- return 0;
26+ return frag;
27 }
28