From 63b2988e4f2630cc688ff43b7e5f0d4f977896cd Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 5 Mar 2020 10:53:06 +0300 Subject: Fix file_empty() to follow symlinks --- libbutl/filesystem.ixx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.1