Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37755066
en ru br
ALT Linux repos
S:1.60-alt19
5.0: 1.60-alt15
4.1: 1.60-alt13
4.0: 1.60-alt13
3.0: 1.60-alt12

Group :: System/Configuration/Networking
RPM: net-tools

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: net-tools-1.60-rh-return.patch
Download


--- 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;
 } 
 
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin