[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#2870: dpkg-ftp-1.4.1 bug



In dpkg-ftp-1.4.1, there is a bug in
/usr/lib/dpkg/methods/ftp/install.  A "<=>" is used instead of cmp,
which is used 3 lines earlier.  Here's the diff output, which seems to
work better than the distributed version.

Unfortunately, I don't have the bad output from the original version
of install.  I hope that this problem is obvious enough to the
maintainer.

Kevin Dalley
kevin@aimnet.com


--- working directory: /tmp/
% diff -c install.orig install
*** install.orig	Wed May  1 23:58:26 1996
--- install	Wed May  1 23:57:44 1996
***************
*** 97,103 ****
          $cm = $ad cmp $bd;  return $cm if $cm;
          $a =~ s/^\d*//; $ad= $&;
          $b =~ s/^\d*//; $bd= $&;
!         $cm = $ad <=> $bd;  return $cm if $cm;
      } while (length($a) && length($b));
      return length($a) cmp length($b);
  }
--- 97,103 ----
          $cm = $ad cmp $bd;  return $cm if $cm;
          $a =~ s/^\d*//; $ad= $&;
          $b =~ s/^\d*//; $bd= $&;
!         $cm = $ad cmp $bd;  return $cm if $cm;
      } while (length($a) && length($b));
      return length($a) cmp length($b);
  }

Exit 1 23:58:42


Reply to: