Let runscript enter the service dir before expand globs
authorChristian Ruppert <idl0r@gentoo.org>
Thu, 26 Apr 2012 13:18:56 +0000 (15:18 +0200)
committerChristian Ruppert <idl0r@gentoo.org>
Thu, 26 Apr 2012 13:18:56 +0000 (15:18 +0200)
commit9d0dce35c3e46b4515499f3f0f1c47645be0bc48
tree0f8052c83ecb8a2c0f36659515ccced8d4b5f1a1
parent441272ff97b2dec4c3566239acf501c88f3026c8
Let runscript enter the service dir before expand globs

Enter the service directory, like gendeps.sh does, to make sure globs are
expanded in it rather than in /. That makes sure that globbing like "need *"
will end up in all files of the init.d directory.

Signed-off-by: Christian Ruppert <idl0r@gentoo.org>
Reported-by: Guenther Brunthaler <gb_about_gnu@gmx.net>
X-Gentoo-Bug: 412677
X-Gentoo-Bug-URL: https://bugs.gentoo.org/412677
sh/runscript.sh.in