mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Bug #937
- Fixed problem with incomplete 'stat' path. Signed-off-by: Paul Beckingham <paul@beckingham.net>
This commit is contained in:
parent
8e5afa0d8a
commit
3ba0b62783
1 changed files with 2 additions and 2 deletions
|
@ -107,7 +107,7 @@ bool Directory::remove_directory (const std::string& dir)
|
|||
|
||||
#if defined (SOLARIS) || defined (HAIKU)
|
||||
struct stat s;
|
||||
stat (de->d_name, &s);
|
||||
stat ((dir + "/" + de->d_name).c_str (), &s);
|
||||
if (s.st_mode & S_IFDIR)
|
||||
remove_directory (dir + "/" + de->d_name);
|
||||
else
|
||||
|
@ -160,7 +160,7 @@ void Directory::list (
|
|||
|
||||
#if defined (SOLARIS) || defined (HAIKU)
|
||||
struct stat s;
|
||||
stat (de->d_name, &s);
|
||||
stat ((base + "/" + de->d_name).c_str (), &s);
|
||||
if (recursive && s.st_mode & S_IFDIR)
|
||||
list (base + "/" + de->d_name, results, recursive);
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue