diff options
Diffstat (limited to 'src/disk_interface.cc')
-rw-r--r-- | src/disk_interface.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/disk_interface.cc b/src/disk_interface.cc index 96a1e59..b1a1746 100644 --- a/src/disk_interface.cc +++ b/src/disk_interface.cc @@ -94,7 +94,7 @@ TimeStamp RealDiskInterface::Stat(const string& path) { #else struct stat st; if (stat(path.c_str(), &st) < 0) { - if (errno == ENOENT) + if (errno == ENOENT || errno == ENOTDIR) return 0; Error("stat(%s): %s", path.c_str(), strerror(errno)); return -1; |