File: sequential_slashes.patch

package info (click to toggle)
libfile-find-rule-perl 0.33-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 180 kB
  • ctags: 44
  • sloc: perl: 861; makefile: 2
file content (15 lines) | stat: -rw-r--r-- 552 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Description: handle sequential slashes properly
Author: Niko Tyni <ntyni@debian.org>
Bug: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=329377
Origin: vendor
Forwarded: no
--- a/lib/File/Find/Rule.pm
+++ b/lib/File/Find/Rule.pm
@@ -540,6 +540,7 @@
     my $topdir;
     my $code = 'sub {
         (my $path = $File::Find::name)  =~ s#^(?:\./+)+##;
+        $path = "." if ($path eq ""); # See Debian bug #329377
         my @args = ($_, $File::Find::dir, $path);
         my $maxdepth = $self->{maxdepth};
         my $mindepth = $self->{mindepth};