[lintian] 01/01: Add an example snippet to explain how to prevent emission of init.d-script-sourcing-without-test.
This is an automated email from the git hooks/post-receive script.
lamby pushed a commit to branch master
in repository lintian.
commit 219673ee774cde59ecc0d5ec92a0072c4149a997
Author: Chris Lamb <lamby@debian.org>
Date: Wed Jul 12 10:10:04 2017 +0100
Add an example snippet to explain how to prevent emission of init.d-script-sourcing-without-test.
---
checks/init.d.desc | 4 +++-
debian/changelog | 3 +++
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/checks/init.d.desc b/checks/init.d.desc
index f655deb..529b678 100644
--- a/checks/init.d.desc
+++ b/checks/init.d.desc
@@ -239,7 +239,9 @@ Info: The given <tt>/etc/init.d</tt> script seems to be sourcing an
<tt>/etc/default/</tt> file without checking for its existence first.
Files in <tt>/etc/default/</tt> can be deleted by the administrator at
any time, and init scripts are required to handle the situation
- gracefully.
+ gracefully. For example:
+ .
+ [ -r /etc/default/foo ] && . /etc/default/foo
Ref: policy 9.3.2
Tag: init.d-script-starts-in-stop-runlevel
diff --git a/debian/changelog b/debian/changelog
index 0e95adb..df6b7bb 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -26,6 +26,9 @@ lintian (2.5.52) UNRELEASED; urgency=medium
are now in oldstable.
+ [NT] Drop check for depending on multiple versions of tkx as
tkx does not seem to be in Debian any longer.
+ * checks/init.d.desc:
+ + [CL] Add an example snippet to explain how to prevent emission
+ of init.d-script-sourcing-without-test.
* checks/menu-format.desc:
+ [ADB] Fix formatting of desktop-entry-lacks-icon-entry
* checks/scripts.desc:
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git
Reply to: