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

[SCM] Debian package checker branch, wheezy, updated. 2.5.10.2-2-gff301e4



The following commit has been merged in the wheezy branch:
commit ff301e4686ee8b7705b88a8a1b6aa91e155cf67a
Author: Niels Thykier <niels@thykier.net>
Date:   Mon Nov 19 22:19:45 2012 +0100

    c/scripts: Fix F-P caused by rm of /dev/shm
    
    Signed-off-by: Niels Thykier <niels@thykier.net>

diff --git a/checks/scripts b/checks/scripts
index bc0dc69..9464342 100644
--- a/checks/scripts
+++ b/checks/scripts
@@ -705,8 +705,13 @@ while (<SCRIPTS>) {
                 if (m/^\s*read(?:\s|\z)/ && !$saw_debconf) {
                     tag 'read-in-maintainer-script', "$file:$.";
                 }
-                if (m,^\s*rm\s+([^>]*\s)?/dev/,) {
-                    tag 'maintainer-script-removes-device-files', "$file:$.";
+                if (m,^\s*rm\s+(?:[^>]*\s)?/dev/([^/ ]+),) {
+                    my $f = $1//'';
+                    if ($f ne 'shm' && $f !~ m,^\.[^.]+,) {
+                        # Ignore /dev/shm (initscripts) and dot-files (which are probably
+                        # not a dev).
+                        tag 'maintainer-script-removes-device-files', "$file:$.";
+                    }
                 }
                 if (m,>\s*(/etc/(?:services|protocols|rpc))(\s|\Z),) {
                     tag 'maintainer-script-modifies-netbase-managed-file', "$file:$. $1";
diff --git a/debian/changelog b/debian/changelog
index 41d3f09..12c5c6d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,12 @@
+lintian (2.5.11) UNRELEASED; urgency=low
+
+  * checks/scripts{,.desc}:
+    + [NT] Fix false-positive for removal of device files as /dev/shm
+      is not a device.  Thanks to Steve Langasek for the report and
+      Roger Leigh for the extra info.  (Closes: #693442)
+
+ -- Niels Thykier <niels@thykier.net>  Tue, 11 Dec 2012 19:19:20 +0100
+
 lintian (2.5.10.2) unstable; urgency=low
 
   * checks/po-debconf:

-- 
Debian package checker


Reply to: