diff options
author | Ian Lance Taylor <ian@airs.com> | 2011-07-03 04:16:13 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 2011-07-03 04:16:13 +0000 |
commit | ae3a6d4fa3cfdf9daa38946945b2a6aa0c0e9fa8 (patch) | |
tree | d60d9d7e627fc95eeaa1cdcb7a6e2e0905cbc6f8 /gold/dirsearch.cc | |
parent | 85deb06ad204f352c9536e73a47791c3cd173d7c (diff) | |
download | gdb-ae3a6d4fa3cfdf9daa38946945b2a6aa0c0e9fa8.zip gdb-ae3a6d4fa3cfdf9daa38946945b2a6aa0c0e9fa8.tar.gz gdb-ae3a6d4fa3cfdf9daa38946945b2a6aa0c0e9fa8.tar.bz2 |
* dirsearch.cc (Dir_cache::read_files): Ignore ENOTDIR errors.
Diffstat (limited to 'gold/dirsearch.cc')
-rw-r--r-- | gold/dirsearch.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gold/dirsearch.cc b/gold/dirsearch.cc index a149db5..1ae2055 100644 --- a/gold/dirsearch.cc +++ b/gold/dirsearch.cc @@ -66,8 +66,9 @@ Dir_cache::read_files() DIR* d = opendir(this->dirname_); if (d == NULL) { - // We ignore directories which do not exist. - if (errno != ENOENT) + // We ignore directories which do not exist or are actually file + // names. + if (errno != ENOENT && errno != ENOTDIR) gold::gold_error(_("%s: can not read directory: %s"), this->dirname_, strerror(errno)); return; |