diff options
Diffstat (limited to 'src/libutil/util.cc')
-rw-r--r-- | src/libutil/util.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/util.cc b/src/libutil/util.cc index 5c8b7279c42d..3a6914cba149 100644 --- a/src/libutil/util.cc +++ b/src/libutil/util.cc @@ -101,7 +101,7 @@ bool pathExists(const Path & path) { int res; struct stat st; - res = stat(path.c_str(), &st); + res = lstat(path.c_str(), &st); if (!res) return true; if (errno != ENOENT) throw SysError(format("getting status of %1%") % path); |