commit:     c89929c39b281565db5dd4fd51c7c1509db976d6
Author:     Jan-Espen Oversand <sigsegv <AT> radiotube <DOT> org>
AuthorDate: Fri Dec 16 20:16:44 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Dec 16 22:57:10 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c89929c3

net-vpn/vtun: Fix bashism in shell script

Fix shell script compatibility issue in rc script (bashism).

Closes: https://bugs.gentoo.org/849446
Signed-off-by: Jan-Espen Oversand <sigsegv <AT> radiotube.org>
Closes: https://github.com/gentoo/gentoo/pull/28682
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-vpn/vtun/files/vtun.rc                                  | 3 ++-
 net-vpn/vtun/{vtun-3.0.3-r3.ebuild => vtun-3.0.3-r4.ebuild} | 0
 net-vpn/vtun/{vtun-3.0.4-r1.ebuild => vtun-3.0.4-r2.ebuild} | 0
 3 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/net-vpn/vtun/files/vtun.rc b/net-vpn/vtun/files/vtun.rc
index 7ef322985043..9d081eeb4f06 100644
--- a/net-vpn/vtun/files/vtun.rc
+++ b/net-vpn/vtun/files/vtun.rc
@@ -7,7 +7,8 @@ depend() {
 }
 
 start() {
-       IFS=$'\n'
+       IFS=$(printf '\n.'); # Set separator (IFS) to <newline><dot>
+       IFS=${IFS%.};        # Remove <dot> - The <dot> was because shells 
remove trailing newlines with $(..)
        for line in `grep -v '^[[:space:]]*#' /etc/vtund-start.conf | grep -v 
'^[[:space:]]*$'`
        do
                echo $line | 

diff --git a/net-vpn/vtun/vtun-3.0.3-r3.ebuild 
b/net-vpn/vtun/vtun-3.0.3-r4.ebuild
similarity index 100%
rename from net-vpn/vtun/vtun-3.0.3-r3.ebuild
rename to net-vpn/vtun/vtun-3.0.3-r4.ebuild

diff --git a/net-vpn/vtun/vtun-3.0.4-r1.ebuild 
b/net-vpn/vtun/vtun-3.0.4-r2.ebuild
similarity index 100%
rename from net-vpn/vtun/vtun-3.0.4-r1.ebuild
rename to net-vpn/vtun/vtun-3.0.4-r2.ebuild

Reply via email to