Просмотр исходного кода

fix for #161593
Author: tausq
Date: 2002-09-20 04:42:25 GMT
fix for #161593

Arch Librarian лет назад: 22
Родитель
Сommit
e9b0cab795
2 измененных файлов с 4 добавлено и 2 удалено
  1. 2 2
      apt-inst/contrib/arfile.cc
  2. 2 0
      debian/changelog

+ 2 - 2
apt-inst/contrib/arfile.cc

@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description								/*{{{*/
-// $Id: arfile.cc,v 1.2 2001/02/20 07:03:16 jgg Exp $
+// $Id: arfile.cc,v 1.3 2002/09/20 04:42:25 tausq Exp $
 /* ######################################################################
 
    AR File - Handle an 'AR' archive
@@ -113,7 +113,7 @@ bool ARArchive::LoadHeaders()
       else
       {
 	 unsigned int I = sizeof(Head.Name) - 1;
-	 for (; Head.Name[I] == ' '; I--);
+	 for (; Head.Name[I] == ' ' || Head.Name[I] == '/'; I--);
 	 Memb->Name = string(Head.Name,0,I+1);
       }
 

+ 2 - 0
debian/changelog

@@ -43,6 +43,8 @@ apt (0.5.5) unstable; urgency=low
   * 'apt-get update' no longer does 'Building Dependency Tree'.
   * When matching regexs allways print a message. Change regex activation
     charset. Closes: #147817
+  * Handle ar files with / name delimiters (as per AR standard). 
+    Closes: #161593
   
  --