diff options
author | Arch Librarian <arch@canonical.com> | 2004-09-20 16:56:57 +0000 |
---|---|---|
committer | Arch Librarian <arch@canonical.com> | 2004-09-20 16:56:57 +0000 |
commit | 721e08d670a6579561389e4302c874f17676ec11 (patch) | |
tree | db00ca2ef1537de27c5a96172cf252e5db24ed4e /apt-pkg/contrib | |
parent | 6aeda9fa854fce99ecda5331e69b782b711bed74 (diff) |
Ignore .* for configuration directory processing. Close...
Author: jgg
Date: 2001-03-03 23:29:55 GMT
Ignore .* for configuration directory processing. Closes: #86923
Diffstat (limited to 'apt-pkg/contrib')
-rw-r--r-- | apt-pkg/contrib/configuration.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/apt-pkg/contrib/configuration.cc b/apt-pkg/contrib/configuration.cc index b3b425cda..18dded669 100644 --- a/apt-pkg/contrib/configuration.cc +++ b/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 |