Przeglądaj źródła

Ignore .* for configuration directory processing. Close...
Author: jgg
Date: 2001-03-03 23:29:55 GMT
Ignore .* for configuration directory processing. Closes: #86923

Arch Librarian 22 lat temu
rodzic
commit
721e08d670
2 zmienionych plików z 4 dodań i 3 usunięć
  1. 2 3
      apt-pkg/contrib/configuration.cc
  2. 2 0
      debian/changelog

+ 2 - 3
apt-pkg/contrib/configuration.cc

@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description								/*{{{*/
-// $Id: configuration.cc,v 1.15 2001/02/20 07:03:17 jgg Exp $
+// $Id: configuration.cc,v 1.16 2001/03/03 23:29:55 jgg Exp $
 /* ######################################################################
 
    Configuration Class
@@ -697,8 +697,7 @@ bool ReadConfigDir(Configuration &Conf,string Dir,bool AsSectional,
    
    for (struct dirent *Ent = readdir(D); Ent != 0; Ent = readdir(D))
    {
-      if (strcmp(Ent->d_name,".") == 0 ||
-	  strcmp(Ent->d_name,"..") == 0)
+      if (Ent->d_name[0] == '.')
 	 continue;
       
       // Skip bad extensions

+ 2 - 0
debian/changelog

@@ -2,6 +2,8 @@ apt (0.5.1) unstable; urgency=low
 
   * Fixed #82894 again, or should be and.
   * Process the option string right. Closes: #86921
+  * Don't eat the last command for pipes. Closes: #86923
+  * Ignore .* for configuration directory processing. Closes: #86923
   * Alfredo's no_proxy patch
   * Documentation fixes. Closes: #87091
   * JoeyH's double slash bug