mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Bug #1199
- Fixed bug #1199, where 'stat' was used instead of 'lstat' (thanks to Jakub Wilk).
This commit is contained in:
parent
6d852a96ca
commit
a7b06bd0ee
2 changed files with 3 additions and 1 deletions
|
@ -111,7 +111,7 @@ bool Directory::remove_directory (const std::string& dir)
|
|||
|
||||
#if defined (SOLARIS) || defined (HAIKU)
|
||||
struct stat s;
|
||||
stat ((dir + "/" + de->d_name).c_str (), &s);
|
||||
lstat ((dir + "/" + de->d_name).c_str (), &s);
|
||||
if (s.st_mode & S_IFDIR)
|
||||
remove_directory (dir + "/" + de->d_name);
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue