Bug #1199
- Fixed bug #1199, where 'stat' was used instead of 'lstat' (thanks to Jakub Wilk).
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user