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

[SCM] Debian package checker branch, master, updated. 2.5.13-22-g37f6006



The following commit has been merged in the master branch:
commit 37f6006b1d5c3b023d8493bcf44c03a6a71d2298
Author: Niels Thykier <niels@thykier.net>
Date:   Thu Jun 13 12:00:42 2013 +0200

    c/cruft: Use full name of broken symlinks
    
    Signed-off-by: Niels Thykier <niels@thykier.net>

diff --git a/checks/cruft b/checks/cruft
index 997bb88..56cdf67 100644
--- a/checks/cruft
+++ b/checks/cruft
@@ -341,7 +341,7 @@ sub find_cruft {
             # package).  For relative links, it escapes the root if we
             # cannot normalize it.
             if ($entry->link =~ m{\A / }xsm or not defined($entry->link_normalized)) {
-                tag 'source-contains-unsafe-symlink', $basename;
+                tag 'source-contains-unsafe-symlink', $name;
             }
             next ENTRY;
         }
diff --git a/debian/changelog b/debian/changelog
index f962652..8fd40ac 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,8 @@ lintian (2.5.14) UNRELEASED; urgency=low
     + [NT] Revise a few tests that relied on file(1) on text files.
     + [NT] Apply patches from Bastien Roucariès to fix some false
       positives in the GDFL related checks.  (Closes: #711119)
+    + [NT] Show the full path with source-contains-unsafe-symlink
+      rather than just the "basename".
   * checks/fields.desc:
     + [NT] Fix typo, thanks to Adrien Cunin.
 
diff --git a/t/tests/cruft-unsafe-symlinks/tags b/t/tests/cruft-unsafe-symlinks/tags
index 7474d70..d3b128b 100644
--- a/t/tests/cruft-unsafe-symlinks/tags
+++ b/t/tests/cruft-unsafe-symlinks/tags
@@ -1,2 +1,2 @@
-E: cruft-unsafe-symlinks source: source-contains-unsafe-symlink absolute-escape
-E: cruft-unsafe-symlinks source: source-contains-unsafe-symlink relative-escape
+E: cruft-unsafe-symlinks source: source-contains-unsafe-symlink bad-symlinks/absolute-escape
+E: cruft-unsafe-symlinks source: source-contains-unsafe-symlink bad-symlinks/relative-escape

-- 
Debian package checker


Reply to: