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

Bug#190749: debian-policy: /etc/init.d scripts example 'test -f program-executed-later-in-script' should be 'test -x'



Package: debian-policy
Version: 3.5.6.1
Severity: minor
Tags: patch

In the 10.3.2 section, a example line to test if the program to execute
does exist is given, but it only tests if the file exists, not if it is
executable.

--- policy.sgml	2003-04-19 12:33:14.000000000 +0200
+++ policy.sgml.corrected	2003-04-25 16:13:36.000000000 +0200
@@ -4762,7 +4762,7 @@
 	    should include a <tt>test</tt> statement at the top of the
 	    script, like this:
 	    <example compact="compact">
-test -f <var>program-executed-later-in-script</var> || exit 0
+test -x <var>program-executed-later-in-script</var> || exit 0
 	    </example>
 	  </p>
 

-- System Information
Debian Release: 3.0
Architecture: i386
Kernel: Linux imperatrice.arcanes 2.4.18-686 #1 Sun Apr 14 11:32:47 EST 2002 i686
Locale: LANG=fr_FR@euro, LC_CTYPE=fr_FR@euro

Versions of packages debian-policy depends on:
ii  fileutils                     4.1-10     GNU file management utilities

-- 
mailto:pierre.thierry@moine-fou.org
OpenPGP 0xD9D50D8A

Attachment: pgpW0Nz_KIB8i.pgp
Description: PGP signature


Reply to: