[SCM] Debian package checker branch, master, updated. 2.2.12-1-g3a916f0
The following commit has been merged in the master branch:
commit 3a916f0910cb8d94ebbad8a1b03cb116899eb665
Author: Adam D. Barratt <adam@adam-barratt.org.uk>
Date: Fri Jun 19 19:15:06 2009 +0100
Handle string collection from set[gu]id files when run as root
* collection/strings:
+ [ADB] Handle the fact that, when Lintian is run as root, the output of
"file" on set[gu]id files may include the fact that they are set[gu]id.
Thanks, Peter Pentchev. (Closes: #533618)
When run as root, the files in the unpacked directory may be created with
set[gu]id bits set if the bits are set in the binary package. The sed
expression extracting ELF binaries from the file-info file therefore needs
to handle the differing output in this case.
This isn't an issue when the user is not root, as the unpacked files will
not have the bits set.
diff --git a/collection/strings b/collection/strings
index ceb606c..5a903c4 100755
--- a/collection/strings
+++ b/collection/strings
@@ -27,7 +27,7 @@
[ ! -f elf-index ] || rm -f elf-index
exec >elf-index
-for bin in $(sed -rn 's/:\s+\bELF\b.+$//g;T;p' file-info); do
+for bin in $(sed -rn 's/:\s+[^,]*\bELF\b.+$//g;T;p' file-info); do
echo "$bin"
case $bin in
/usr/lib/debug/*)
diff --git a/debian/changelog b/debian/changelog
index d8dd64d..a98a3c1 100755
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,12 @@
+lintian (2.2.13) UNRELEASED; urgency=low
+
+ * collection/strings:
+ + [ADB] Handle the fact that, when Lintian is run as root, the output of
+ "file" on set[gu]id files may include the fact that they are set[gu]id.
+ Thanks, Peter Pentchev. (Closes: #533618)
+
+ -- Adam D. Barratt <adam@adam-barratt.org.uk> Fri, 19 Jun 2009 19:11:28 +0100
+
lintian (2.2.12) unstable; urgency=low
The "Policy 3.8.2" release.
--
Debian package checker
Reply to: