Re: Sourcing init-functions
On Sat, Jan 16, 2010 at 10:57:48AM +0100, Michael Welle wrote:
> several init scripts use such a fragment for sourcing init-functions:
> if ! [ -x "/lib/lsb/init-functions" ]; then
> . /lib/lsb/init-functions
> echo "E: /lib/lsb/init-functions not found, lsb-base (>= 3.0-6) needed"
> exit 1
> What is the reason to bail out if the execute bit is set? Or should I
> bug report these packages?
Looks like a bug. -x checks for existence _and_ the exec bit set, so
if the file does not exist the next line will try to source it. The
error message suggests that the author wanted a completely different