From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1R5Gl1-000144-FA for garchives@archives.gentoo.org; Sun, 18 Sep 2011 12:46:03 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 94DE121C0BA; Sun, 18 Sep 2011 12:45:55 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 5ED6021C0BA for ; Sun, 18 Sep 2011 12:45:55 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id EA79E1B4028 for ; Sun, 18 Sep 2011 12:45:54 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 17E5480042 for ; Sun, 18 Sep 2011 12:45:54 +0000 (UTC) From: "Christian Ruppert" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Christian Ruppert" Message-ID: <0e4d169a40e01d74cf5ff399afe049a25543f0f6.idl0r@gentoo> Subject: [gentoo-commits] proj/openrc:master commit in: net/ X-VCS-Repository: proj/openrc X-VCS-Files: net/ethtool.sh X-VCS-Directories: net/ X-VCS-Committer: idl0r X-VCS-Committer-Name: Christian Ruppert X-VCS-Revision: 0e4d169a40e01d74cf5ff399afe049a25543f0f6 Date: Sun, 18 Sep 2011 12:45:54 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: e9cc1b94889ae8b1f7fcf7f6e798da17 commit: 0e4d169a40e01d74cf5ff399afe049a25543f0f6 Author: Gilles Oivier wanadoo fr> AuthorDate: Sun Sep 18 12:42:39 2011 +0000 Commit: Christian Ruppert gentoo org> CommitDate: Sun Sep 18 12:42:39 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/openrc.git;a=3D= commit;h=3D0e4d169a Fix the Internal Field Seperator when using ethtool ethtool.sh didn't reset the Internal Field Seperator (IFS) properly. It now does, by storing the old IFS to OIFS, which will be used later in the for loop. It also fixes the "ethtool_ring_" option. Reported-by: Alois Schmid gmx.de> X-Gentoo-Bug: 368525 X-Gentoo-Bug-URL: https://bugs.gentoo.org/368525 --- net/ethtool.sh | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/net/ethtool.sh b/net/ethtool.sh index 21a22b6..fecb7b9 100644 --- a/net/ethtool.sh +++ b/net/ethtool.sh @@ -31,6 +31,7 @@ ethtool_pre_start() { [ -z "${args}" ] && continue =20 # Split on \n + OIFS=3D"${IFS}" local IFS=3D"$__IFS" =20 for p in ${args} ; do @@ -38,6 +39,7 @@ ethtool_pre_start() { local args_pretty=3D"$(_trim "${p}")" # Do nothing if empty [ -z "${args_pretty}" ] && continue + [ "${opt}" =3D "ring" ] && opt=3D"set-ring" args_pretty=3D"--${opt} $IFACE ${args_pretty}" args=3D"--${opt} $IFACE ${args}" ebegin "ethtool ${args_pretty}"