rpmlint/0001-Better-details-for-wrong-script-interpreter.patch
lb1107039128 b56bb88767 Better details for wrong-script-interpreter
Signed-off-by: lb1107039128 <liubo1@xfusion.com>
2023-12-27 10:31:01 +08:00

32 lines
1.0 KiB
Diff

From 5d29ab9886f3821af963f32c8f556d144e4a5999 Mon Sep 17 00:00:00 2001
From: Dirk Mueller <dirk@dmllr.de>
Date: Thu, 28 Sep 2017 22:28:30 +0200
Subject: [PATCH] Better details for wrong-script-interpreter
It seems it is not entirely obvious that the warning
can be surpressed by not marking files as executable
that are not actually supposed to be executed.
---
FilesCheck.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/FilesCheck.py b/FilesCheck.py
index 87965bc4..57de8fbf 100644
--- a/FilesCheck.py
+++ b/FilesCheck.py
@@ -1276,7 +1276,10 @@ executed.''',
'wrong-script-interpreter',
'''This script uses an interpreter which is either an inappropriate one
-or located in an inappropriate directory for packaged system software.''',
+or located in an inappropriate directory for packaged system software.
+Alternatively, if the file should not be executed, then ensure that
+it is not marked as executable.
+''',
'non-executable-script',
'''This text file contains a shebang or is located in a path dedicated for
--
2.42.0.windows.2