commit: 3a97f7c0dd702d55e1280c1153d44ee8747fe1f4 Author: mirabilos <tg <AT> debian <DOT> org> AuthorDate: Fri Oct 10 21:58:11 2014 +0000 Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> CommitDate: Sat Oct 11 19:47:17 2014 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/netifrc.git;a=commit;h=3a97f7c0
Fix https://bugs.gentoo.org/show_bug.cgi?id=500942 “unset x” also removes the “local x” property, so the next assignment and/or read to/from $x will access the global variable “x”. Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org> --- init.d/net.lo.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.d/net.lo.in b/init.d/net.lo.in index 01c1b20..6a0aefb 100644 --- a/init.d/net.lo.in +++ b/init.d/net.lo.in @@ -203,7 +203,7 @@ _program_available() /*) [ -x "${x}" ] && break;; *) type "${x}" >/dev/null 2>&1 && break;; esac - unset x + x= done [ -n "${x}" ] && echo $x && return 0 return 1
