[Pkg-nagios-devel] Bug#565496: Bug#565496: Invalid logic sourcing init-functions
Michael Welle
welle at c0t0d0s0.de
Sat Jan 16 13:15:10 UTC 2010
Hi Alexander,
Alexander Wirt wrote:
>
> Michael Welle schrieb am Samstag, den 16. Januar 2010:
>
> Hi,
>
> > The logic for sourcing the file init-functions seems to be odd:
> >
> > 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
> >
> > The file is not sourced if it exists, but has its execute bits set. On
> > the other hand the script tries to source the file if it doesn't exist
> > at all. It should be sufficient to just test if the file is readable.
> Indeed, thats stupid. Don't ask me how this went into it, but I'll fix that
> soon.
I have several packages installed, that suffer from the same
problem. My guess is that someone 'invented that phrase' and then it's
copied over and over again ;).
Regards
hmw
--
biff4emacsen - A biff-like tool for (X)Emacs
http://www.c0t0d0s0.de/biff4emacsen/biff4emacsen.html
Flood - Your friendly network packet generator
http://www.c0t0d0s0.de/flood/flood.html
More information about the Pkg-nagios-devel
mailing list