[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#291026: One more tweak



reopen 291026
severity 291026 minor
thanks

First of all, thanks for addressing the issue.

Version 3.6.2.0 of policy section 9.3.3.2 contains this code as an
example of how to test for the availability of a utility:

    if which invoke-rc.d >/dev/null 2>&1; then
        ...

As I mentioned earlier, I think that policy would do a bit better to
follow the example of debhelper and test the executability of the file
reported by which.  As discussed before, the which program sometimes
prints filenames that don't have their executable bits set.  The
resulting code is not much more complex.

    if [ -x "$(which invoke-rc.d 2>/dev/null)" ] ; then
        ...

Obviously this is a minor issue, though.
-- 
Thomas Hood <jdthood@aglu.demon.nl>




Reply to: