summaryrefslogtreecommitdiffstats
path: root/tags/c/command-with-path-in-maintainer-script.tag
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 13:42:30 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 13:42:30 +0000
commit75808db17caf8b960b351e3408e74142f4c85aac (patch)
tree7989e9c09a4240248bf4658a22208a0a52d991c4 /tags/c/command-with-path-in-maintainer-script.tag
parentInitial commit. (diff)
downloadlintian-75808db17caf8b960b351e3408e74142f4c85aac.tar.xz
lintian-75808db17caf8b960b351e3408e74142f4c85aac.zip
Adding upstream version 2.117.0.upstream/2.117.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tags/c/command-with-path-in-maintainer-script.tag')
-rw-r--r--tags/c/command-with-path-in-maintainer-script.tag18
1 files changed, 18 insertions, 0 deletions
diff --git a/tags/c/command-with-path-in-maintainer-script.tag b/tags/c/command-with-path-in-maintainer-script.tag
new file mode 100644
index 0000000..d7602dc
--- /dev/null
+++ b/tags/c/command-with-path-in-maintainer-script.tag
@@ -0,0 +1,18 @@
+Tag: command-with-path-in-maintainer-script
+Severity: warning
+Check: scripts
+Explanation: The indicated program run in a maintainer script has a prepended
+ path. Programs called from maintainer scripts normally should not have a
+ path prepended. dpkg ensures that the PATH is set to a reasonable value,
+ and prepending a path may prevent the local administrator from using a
+ replacement version of a command for some local reason.
+ .
+ If the path is used to test a program for existence, please use <code>if
+ which $program > /dev/null; then …</code>.
+ .
+ If you intend to override this tag, please make sure that you are in
+ control of the installation path of the according program and that
+ you won't forget to change this maintainer script, too, if you ever
+ move that program around.
+See-Also: debian-policy 6.1, developer-reference 6.4, Bug#769845, Bug#807695,
+ https://lists.debian.org/debian-devel/2014/11/msg00044.html