aboutsummaryrefslogtreecommitdiff
path: root/init.d
diff options
context:
space:
mode:
authormirabilos <tg@debian.org>2014-10-10 23:58:11 +0200
committerRobin H. Johnson <robbat2@gentoo.org>2014-10-11 12:47:17 -0700
commit3a97f7c0dd702d55e1280c1153d44ee8747fe1f4 (patch)
tree7c33d0786c19b70091f8bc655a00de483bc499fd /init.d
parentUse dhcpcd -k to force the release, instead of SIGHUP (diff)
downloadnetifrc-3a97f7c0dd702d55e1280c1153d44ee8747fe1f4.tar.gz
netifrc-3a97f7c0dd702d55e1280c1153d44ee8747fe1f4.tar.bz2
netifrc-3a97f7c0dd702d55e1280c1153d44ee8747fe1f4.zip
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@gentoo.org>
Diffstat (limited to 'init.d')
-rw-r--r--init.d/net.lo.in2
1 files changed, 1 insertions, 1 deletions
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