diff options
Diffstat (limited to 'base/file_util_posix.cc')
-rw-r--r-- | base/file_util_posix.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/base/file_util_posix.cc b/base/file_util_posix.cc index 4a86261..2047636 100644 --- a/base/file_util_posix.cc +++ b/base/file_util_posix.cc @@ -659,7 +659,7 @@ bool FileEnumerator::ReadDirectory(std::vector<DirectoryEntryInfo>* entries, if (ret < 0) { // Print the stat() error message unless it was ENOENT and we're // following symlinks. - if (!(ret == ENOENT && !show_links)) { + if (!(errno == ENOENT && !show_links)) { PLOG(ERROR) << "Couldn't stat " << source.Append(dent->d_name).value(); } |