Bug #1199
- Fixed bug #1199, where 'stat' was used instead of 'lstat' (thanks to Jakub Wilk).
This commit is contained in:
@@ -97,6 +97,8 @@ Bugs
|
|||||||
and caused the 'execute' command to be considered a 'write' command.
|
and caused the 'execute' command to be considered a 'write' command.
|
||||||
+ Fixed bug #1194, so that $HOME has precedence over the passwd db when looking
|
+ Fixed bug #1194, so that $HOME has precedence over the passwd db when looking
|
||||||
for the user's home directory (thanks to Jakub Wilk).
|
for the user's home directory (thanks to Jakub Wilk).
|
||||||
|
+ Fixed bug #1199, where 'stat' was used instead of 'lstat' (thanks to Jakub
|
||||||
|
Wilk).
|
||||||
+ Fixed bug #1200, where directory removal didn't handle d_type==DT_UNKNOWN
|
+ Fixed bug #1200, where directory removal didn't handle d_type==DT_UNKNOWN
|
||||||
(thanks to Jakub Wilk).
|
(thanks to Jakub Wilk).
|
||||||
+ Fixed bug #1209, spelling mistake in reference page (thanks to Friedrich
|
+ Fixed bug #1209, spelling mistake in reference page (thanks to Friedrich
|
||||||
|
|||||||
@@ -111,7 +111,7 @@ bool Directory::remove_directory (const std::string& dir)
|
|||||||
|
|
||||||
#if defined (SOLARIS) || defined (HAIKU)
|
#if defined (SOLARIS) || defined (HAIKU)
|
||||||
struct stat s;
|
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)
|
if (s.st_mode & S_IFDIR)
|
||||||
remove_directory (dir + "/" + de->d_name);
|
remove_directory (dir + "/" + de->d_name);
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user