aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/net-tools/files/net-tools-1.60-return.patch
blob: 8ef10f51c390138fce23a922606148ef300b20eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
--- net-tools-1.60/nameif.c.return	2004-08-03 18:01:37.000000000 +0900
+++ net-tools-1.60/nameif.c	2004-08-03 18:03:37.000000000 +0900
@@ -27,6 +27,7 @@
 const char *fname = default_conf; 
 int use_syslog; 
 int ctl_sk = -1; 
+int frag = 0;
 
 void err(char *msg) 
 { 
@@ -288,13 +289,15 @@
 	while (clist) { 
 		struct change *ch = clist;
 		clist = clist->next;
-		if (!ch->found)
+		if (!ch->found){
 			warning(_("interface '%s' not found"), ch->ifname); 
+			frag = 1;
+		}
 		free(ch); 
 	}
 
 	if (use_syslog)
 		closelog();
-	return 0;
+	return frag;
 }