mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-09-07 02:47:20 +02:00
Bug #1200
- Fixed bug #1200, where directory removal didn't handle d_type==DT_UNKNOWN (thanks to Jakub Wilk).
This commit is contained in:
parent
6c0561cb4d
commit
6d852a96ca
2 changed files with 4 additions and 1 deletions
|
@ -117,7 +117,8 @@ bool Directory::remove_directory (const std::string& dir)
|
|||
else
|
||||
unlink ((dir + "/" + de->d_name).c_str ());
|
||||
#else
|
||||
if (de->d_type == DT_DIR)
|
||||
if (de->d_type == DT_DIR ||
|
||||
de->d_type == DT_UNKNOWN)
|
||||
remove_directory (dir + "/" + de->d_name);
|
||||
else
|
||||
unlink ((dir + "/" + de->d_name).c_str ());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue