mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-21 02:24:17 +08:00
* dirsearch.cc (Dir_cache::read_files): Ignore ENOTDIR errors.
This commit is contained in:
@ -1,3 +1,7 @@
|
|||||||
|
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>
|
2011-07-01 Ian Lance Taylor <iant@google.com>
|
||||||
|
|
||||||
PR gold/12525
|
PR gold/12525
|
||||||
|
@ -66,8 +66,9 @@ Dir_cache::read_files()
|
|||||||
DIR* d = opendir(this->dirname_);
|
DIR* d = opendir(this->dirname_);
|
||||||
if (d == NULL)
|
if (d == NULL)
|
||||||
{
|
{
|
||||||
// We ignore directories which do not exist.
|
// We ignore directories which do not exist or are actually file
|
||||||
if (errno != ENOENT)
|
// names.
|
||||||
|
if (errno != ENOENT && errno != ENOTDIR)
|
||||||
gold::gold_error(_("%s: can not read directory: %s"),
|
gold::gold_error(_("%s: can not read directory: %s"),
|
||||||
this->dirname_, strerror(errno));
|
this->dirname_, strerror(errno));
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user