[Bug 1792934] Re: symlink loop detected in path 'usr/share/doc/module-init-tools/changelog.Debian.gz'

Erik Sornes 1792934 at bugs.launchpad.net
Fri Oct 11 11:13:08 UTC 2024


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 Ubuntu
Foundations Bugs, which is subscribed to kmod in Ubuntu.
https://bugs.launchpad.net/bugs/1792934

Title:
  symlink loop detected in path 'usr/share/doc/module-init-
  tools/changelog.Debian.gz'

Status in debsums package in Ubuntu:
  Confirmed
Status in kmod package in Ubuntu:
  New
Status in module-init-tools package in Ubuntu:
  New

Bug description:
  I ran debsums -ac and it printed this error

      debsums: Error: symlink loop detected in path
  'usr/share/doc/module-init-tools/changelog.Debian.gz'. Please file a
  bug again module-init-tools.

  So here I am, filing a bug against module-init-tools.

  ProblemType: Bug
  DistroRelease: Ubuntu 18.04
  Package: module-init-tools 24-1ubuntu3
  ProcVersionSignature: Ubuntu 4.15.0-34.37-generic 4.15.18
  Uname: Linux 4.15.0-34-generic x86_64
  ApportVersion: 2.20.9-0ubuntu7.3
  Architecture: amd64
  Date: Mon Sep 17 16:13:36 2018
  InstallationDate: Installed on 2012-11-02 (2144 days ago)
  InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120425)
  PackageArchitecture: all
  ProcEnviron:
   LC_CTYPE=lt_LT.UTF-8
   TERM=xterm-256color
   PATH=(custom, no user)
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: kmod
  UpgradeStatus: Upgraded to bionic on 2018-09-16 (1 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/debsums/+bug/1792934/+subscriptions




More information about the foundations-bugs mailing list