[lintian] 01/01: Run privacy breach only on regular file
This is an automated email from the git hooks/post-receive script.
broucaries-guest pushed a commit to branch master
in repository lintian.
commit f3fd015277268db2504ed02fd9a106f7582c315f
Author: Bastien ROUCARIÈS <roucaries.bastien@gmail.com>
Date: Sat Dec 28 22:47:08 2013 +0100
Run privacy breach only on regular file
Signed-off-by; Bastien ROUCARIÈS <roucaries.bastien+debian@gmail.com>
---
checks/files.pm | 5 +++++
debian/changelog | 1 +
2 files changed, 6 insertions(+)
diff --git a/checks/files.pm b/checks/files.pm
index ee26931..45659aa 100644
--- a/checks/files.pm
+++ b/checks/files.pm
@@ -1827,6 +1827,11 @@ sub detect_privacy_breach {
my ($info, $file) = @_;
my %privacybreachhash = ();
+ # detect only in regular file
+ unless($file->is_regular_file) {
+ return;
+ }
+
my $sfd = Lintian::SlidingWindow->new(
'<',
$info->unpacked($file),
diff --git a/debian/changelog b/debian/changelog
index 17ccc26..0ace2db 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -25,6 +25,7 @@ lintian (2.5.21) UNRELEASED; urgency=medium
+ [BR] Add a moreinfo field to obsolete path.
+ [BR] Fix non-conf-file-in-modprobe.d description
(Closes: #729037).
+ + [BR] Check privacy breach only in regular file.
* checks/rules.{desc,pm}:
+ [BR] Use Lintian::Data for forbidden construct in rules
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git
Reply to: