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;