- Now uses 'lstat' instead of 'stat' to determine whether a path is
  a symlink. This doesn't work either.
This commit is contained in:
Paul Beckingham 2014-05-17 14:28:35 -04:00
parent 924182e12c
commit f6607168ad

View file

@ -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;