aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2020-03-05 10:53:06 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2020-03-09 14:18:20 +0300
commit63b2988e4f2630cc688ff43b7e5f0d4f977896cd (patch)
tree828ebca95bd3e220a97c404f0263816ef36b0a3c
parentd72b8ce14b8aeefd7ee3fe87376f53637d3659fe (diff)
Fix file_empty() to follow symlinks
-rw-r--r--libbutl/filesystem.ixx2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbutl/filesystem.ixx b/libbutl/filesystem.ixx
index 8aed4d7..a0ddc22 100644
--- a/libbutl/filesystem.ixx
+++ b/libbutl/filesystem.ixx
@@ -14,7 +14,7 @@ namespace butl
inline bool
file_empty (const path& f)
{
- auto p (path_entry (f));
+ auto p (path_entry (f, true /* follow_symlinks */));
if (p.first && p.second.type == entry_type::regular)
return p.second.size == 0;