mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Path
- Now uses 'lstat' instead of 'stat' to determine whether a path is a symlink. This doesn't work either.
This commit is contained in:
parent
924182e12c
commit
f6607168ad
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue