mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 13:11:39 +01:00
[fs] Make sure to check S_ISLNK() in fillStatus.
llvm-svn: 297167
This commit is contained in:
parent
d669bae61b
commit
c731e85192
@ -500,6 +500,8 @@ static std::error_code fillStatus(int StatRet, const struct stat &Status,
|
||||
Type = file_type::fifo_file;
|
||||
else if (S_ISSOCK(Status.st_mode))
|
||||
Type = file_type::socket_file;
|
||||
else if (S_ISLNK(Status.st_mode))
|
||||
Type = file_type::symlink_file;
|
||||
|
||||
perms Perms = static_cast<perms>(Status.st_mode);
|
||||
Result =
|
||||
|
Loading…
x
Reference in New Issue
Block a user