From 1ce1a4db0749381a2bda174dca4a402e873752d0 Mon Sep 17 00:00:00 2001 From: Matteo Azzali Date: Thu, 29 Mar 2007 06:31:05 +0000 Subject: Fixed sysbackend patch. (Portage version: 2.1.2.2) --- net-misc/knemo/ChangeLog | 6 +++++- net-misc/knemo/files/knemo-0.4.6-sysbackend.patch | 14 +++++++++++--- 2 files changed, 16 insertions(+), 4 deletions(-) (limited to 'net-misc/knemo') diff --git a/net-misc/knemo/ChangeLog b/net-misc/knemo/ChangeLog index e3b6f73fb4fb..a7546404865c 100644 --- a/net-misc/knemo/ChangeLog +++ b/net-misc/knemo/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for net-misc/knemo # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/knemo/ChangeLog,v 1.29 2007/03/28 14:23:49 mattepiu Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/knemo/ChangeLog,v 1.30 2007/03/29 06:31:05 mattepiu Exp $ + + 29 Mar 2007; Matteo Azzali + files/knemo-0.4.6-sysbackend.patch: + fixed sysbackend patch. *knemo-0.4.6-r1 (28 Mar 2007) diff --git a/net-misc/knemo/files/knemo-0.4.6-sysbackend.patch b/net-misc/knemo/files/knemo-0.4.6-sysbackend.patch index 11b8f053a7d6..69392c85e568 100644 --- a/net-misc/knemo/files/knemo-0.4.6-sysbackend.patch +++ b/net-misc/knemo/files/knemo-0.4.6-sysbackend.patch @@ -1,10 +1,18 @@ --- src/knemod/backends/sysbackend.cpp.orig 2006-10-24 22:40:51.000000000 +0200 +++ src/knemod/backends/sysbackend.cpp 2007-03-28 16:09:27.000000000 +0200 -@@ -289,6 +289,7 @@ +@@ -262,6 +262,7 @@ + in.s_addr = regExp.cap( 1 ).toULong( &ok, 16 ); + data.defaultGateway = inet_ntoa( in ); + } ++ routeFile.close(); + } + + // use ioctls for the rest +@@ -289,6 +290,7 @@ { data.subnetMask = inet_ntoa(((struct sockaddr_in*)&ifr.ifr_netmask)->sin_addr); } -+ close(fd); ++ close( fd ); } } - + -- cgit v1.2.3-65-gdbad