From f6607168adc6565b7b697c891df1e7f2b3fdcd13 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 17 May 2014 14:28:35 -0400 Subject: [PATCH] Path - Now uses 'lstat' instead of 'stat' to determine whether a path is a symlink. This doesn't work either. --- src/Path.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Path.cpp b/src/Path.cpp index f54f721d9..2d836a629 100644 --- a/src/Path.cpp +++ b/src/Path.cpp @@ -180,7 +180,7 @@ bool Path::is_absolute () const bool Path::is_link () const { struct stat s = {0}; - if (! stat (_data.c_str (), &s) && + if (! lstat (_data.c_str (), &s) && s.st_mode & S_IFLNK) return true;