diff --git a/net-tools-1.60-return.patch b/net-tools-1.60-return.patch new file mode 100644 index 0000000..8ef10f5 --- /dev/null +++ b/net-tools-1.60-return.patch @@ -0,0 +1,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; + } + diff --git a/net-tools.spec b/net-tools.spec index 6e44b85..bed3fb5 100644 --- a/net-tools.spec +++ b/net-tools.spec @@ -3,7 +3,7 @@ Summary: Basic networking tools. Name: net-tools Version: 1.60 -Release: 34 +Release: 35 License: GPL Group: System Environment/Base Source0: http://www.tazenda.demon.co.uk/phil/net-tools/net-tools-%{version}.tar.bz2 @@ -31,6 +31,7 @@ Patch17: netplug-1.2.7-compiler.patch Patch18: netplug-1.2.7-installopts.patch Patch19: net-tools-1.60-siunits.patch Patch20: net-tools-1.60-trunc.patch +Patch21: net-tools-1.60-return.patch BuildRoot: %{_tmppath}/%{name}-root Requires(post,preun): chkconfig BuildRequires: gettext @@ -61,6 +62,7 @@ ifconfig, netstat, route, and others. %patch18 -p1 -b .installopts %patch19 -p1 -b .siunits %patch20 -p1 -b .trunc +%patch21 -p1 -b .return cp %SOURCE2 ./config.h cp %SOURCE3 ./config.make @@ -133,6 +135,9 @@ exit 0 %{_sysconfdir}/rc.d/init.d/netplugd %changelog +* Fri Sep 03 2004 Radek Vokal 1.60-35 +- The return value of nameif was wrong (#129032) - patch from Fujitsu QA + * Tue Aug 30 2004 Radek Vokal 1.60-34 - Trunc patch added (#128359)