File: sequential_slashes.patch

package info (click to toggle)
libfile-find-rule-perl 0.34-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 184 kB
  • sloc: perl: 873; makefile: 2
file content (15 lines) | stat: -rw-r--r-- 562 bytes parent folder | download
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: https://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
@@ -557,6 +557,7 @@ sub in {
     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};