commit | 3b9fb88476b9d11a31c0dcc2ede9b1156e994096 | [log] [tgz] |
---|---|---|
author | Zachary Turner <zturner@google.com> | Tue Mar 07 17:48:47 2017 +0000 |
committer | Zachary Turner <zturner@google.com> | Tue Mar 07 17:48:47 2017 +0000 |
tree | 7da56dcea081fab7a7b0a13c47161751cbc3b346 | |
parent | 6d306061686954e7f831309caba7b6b1f6c61e25 [diff] [blame] |
[fs] Make sure to check S_ISLNK() in fillStatus. llvm-svn: 297167
diff --git a/llvm/lib/Support/Unix/Path.inc b/llvm/lib/Support/Unix/Path.inc index 05636f8..76e1ed2 100644 --- a/llvm/lib/Support/Unix/Path.inc +++ b/llvm/lib/Support/Unix/Path.inc
@@ -500,6 +500,8 @@ 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 =