pkg-perl-maintainers team mailing list archive
-
pkg-perl-maintainers team
-
Mailing list archive
-
Message #05015
[Bug 1792934] Re: symlink loop detected in path 'usr/share/doc/module-init-tools/changelog.Debian.gz'
Since this case is open, I just write here the total patch as created
bye ilya above, it works great for us with ubuntu 20.04, thanks, ilya!
--- debsums.old 2024-10-09 10:36:02.079783414 +0200
+++ debsums.new 2024-10-11 10:04:30.347251492 +0200
@@ -470,8 +470,7 @@
if ($seen{$fp}) {
# better die now with a clear error message then later
# with a sysopen fails
- die "$self: Error: symlink loop detected in path '$path'. ",
- "Please file a bug against $package.\n";
+ return "";
}
$seen{$fp} = 1;
if (-l $fp) {
@@ -496,8 +495,11 @@
$path = $diversion{$path}[0] if exists $diversion{$path}
and $diversion{$path}[1] ne $pack
and $diversion{$path}[1] ne $pack =~ s/:.*//r;
-
my $resolved = resolve_path($path,$pack);
+ if ($resolved eq "") {
+ warn "$self: symlink loop - can't open $pack file $root/$path ($@)\n";
+ return 2;
+ }
if ((!sysopen F, "$root/$resolved", O_RDONLY|O_NONBLOCK|$my_noatime) &&
(!sysopen F, "$root/$resolved", O_RDONLY|O_NONBLOCK))
{
--
You received this bug notification because you are a member of Debian
Perl Group, which is subscribed to debsums in Ubuntu.
https://bugs.launchpad.net/bugs/1792934
Title:
symlink loop detected in path 'usr/share/doc/module-init-
tools/changelog.Debian.gz'
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/debsums/+bug/1792934/+subscriptions