On Sat, Jan 16, 2010 at 10:57:48AM +0100, Michael Welle wrote: > Hello, > > several init scripts use such a fragment for sourcing init-functions: > > if ! [ -x "/lib/lsb/init-functions" ]; then > . /lib/lsb/init-functions > else > echo "E: /lib/lsb/init-functions not found, lsb-base (>= 3.0-6) needed" > exit 1 > fi > > 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 behaviour... -- Stanislav -- To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org