From e3a55c39b6dd7a866aa1033203a1813e646f8c50 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 17 Jul 2015 14:23:06 +0200 Subject: Fix stat/lstat type/ltype to be consistent, use correct *stat() --- butl/filesystem.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'butl/filesystem.cxx') diff --git a/butl/filesystem.cxx b/butl/filesystem.cxx index c65d591..2a1fad9 100644 --- a/butl/filesystem.cxx +++ b/butl/filesystem.cxx @@ -42,7 +42,7 @@ namespace butl file_mtime (const path& p) { struct stat s; - if (::lstat (p.string ().c_str (), &s) != 0) + if (::stat (p.string ().c_str (), &s) != 0) { if (errno == ENOENT || errno == ENOTDIR) return timestamp_nonexistent; @@ -61,7 +61,7 @@ namespace butl dir_exists (const path& p) { struct stat s; - if (::lstat (p.string ().c_str (), &s) != 0) + if (::stat (p.string ().c_str (), &s) != 0) { if (errno == ENOENT || errno == ENOTDIR) return false; @@ -76,7 +76,7 @@ namespace butl file_exists (const path& p) { struct stat s; - if (::lstat (p.string ().c_str (), &s) != 0) + if (::stat (p.string ().c_str (), &s) != 0) { if (errno == ENOENT || errno == ENOTDIR) return false; -- cgit v1.1