• Felix Lechner's avatar
    Revert "Fix use of uninitialized value in checks/files.pm." · 244f7624
    Felix Lechner authored
    This reverts commit d55f56ec.
    
    Commit d55f56ec broke the following semantics:
    
      $ perl -we 'my $p = "usr/sbin/foo"; print "/$1bin/$2\n" if $p =~ m,^(usr/)?sbin/(.+),;'
      /usr/bin/foo
      $ perl -we 'my $p = "sbin/foo"; print "/$1bin/$2\n" if $p =~ m,^(usr/)?sbin/(.+),;'
      Use of uninitialized value $1 in concatenation (.) or string at -e line 1.
      /bin/foo
    
    So if $fname starts with usr/sbin/ (resp. sbin/) a corresponding name
    with the /usr/bin/ (resp. /bin/) prefix is appended to @bin_binaries.
    It also spews a warning for sbin/; I guess the desired outcome is to
    silence that warning but preserve the overall behavior, right?  This
    is no longer what happens: while names starting with usr/sbin/ are
    dealt with like before, those starting with sbin/ are now ignored.
    
    More information may be available here:
    
      lintian/lintian!235 (comment 100475)
    
    Thanks to Guilhem Moulin for pointing it out!
    
    Gbp-Dch: ignore
    244f7624
Name
Last commit
Last update
checks Loading commit data...
collection Loading commit data...
commands Loading commit data...
data Loading commit data...
debian Loading commit data...
doc Loading commit data...
frontend Loading commit data...
helpers/coll Loading commit data...
lib Loading commit data...
mail-templates Loading commit data...
man Loading commit data...
private Loading commit data...
profiles Loading commit data...
reporting Loading commit data...
t Loading commit data...
tags Loading commit data...
vendors Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
.mailmap Loading commit data...
.perlcriticrc Loading commit data...
.perltidyrc Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING.md Loading commit data...
COPYING Loading commit data...
README.md Loading commit data...