+2011-07-02 Ian Lance Taylor <iant@google.com>
+
+ * dirsearch.cc (Dir_cache::read_files): Ignore ENOTDIR errors.
+
2011-07-01 Ian Lance Taylor <iant@google.com>
PR gold/12525
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;