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

Bug#1017632: lintian: False positive on partial match for bin-sbin-mismatch



On Mon, 2022-08-22 at 09:59:34 +0200, Axel Beckert wrote:
> Guillem Jover wrote:
> > The bin-sbin-mismatch triggers false positives on partial matches such
> > as /usr/bin/dpkg-www and /usr/sbin/dpkg-www-installer, or
> > /usr/bin/dpkg and /usr/sbin/dpkg-fsys-usrunmess.
> 
> Urgs. Thanks! Nice catch!

> > This is due to the check in lib/Lintian/Check/Files/Contents.pm, where
> > it essentially does the following:
> > 
> >   perl -E '$str = "/bin/dpkg-www-installer"; \
> >            say "wrong-match" if $str =~ m{\B/\Qbin/dpkg-www\E\b}x'
> > 
> > I've got false-positives in dpkg and dpkg-www.
> 
> So that last \b should be a $, right?

I don't think so, as I think the intention of the code is to find such
instances anywhere in a line, say in pseudo-lines:

  «^variable = "/usr/sbin/dpkg-www-installer"$»

or in documentation?

  «^This does blah via /usr/sbin/dpkg-www-installer and something other.$»

Thanks,
Guillem


Reply to: