Bug#40373: apt: file: uri handling broken
Package: apt
Version: 0.3.9
Severity: grave
A change 0.3.9 broke apt's file: URI handling by causing the Host
member in the URI class to be non-empty. The patch below fixes it for
me.
David
-- System Information
Debian Release: potato
Kernel Version: Linux elo 2.2.10 #1 Mon Jun 14 11:05:28 CDT 1999 i686 unknown
Versions of the packages apt depends on:
ii libc6 2.1.1-12 GNU C Library: Shared libraries and timezone
ii libstdc++2.9-gl 2.91.66-2 The GNU stdc++ library (EGCS version)
--- strutl.cc.orig Mon Jun 28 11:32:27 1999
+++ strutl.cc Mon Jun 28 10:48:44 1999
@@ -715,7 +715,7 @@
string::const_iterator At = I;
// Now write the host and user/pass
- if (At == SingleSlash)
+ if (At >= SingleSlash)
{
if (FirstColon < SingleSlash)
Host = string(U,FirstColon - U.begin(),SingleSlash - FirstColon);
Reply to: