mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
win32.c: S_IFLNK
* win32/win32.c (fileattr_to_unixmode): set symlink for reparse points. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50022 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e2853f5d81
commit
5155a402ab
2 changed files with 5 additions and 0 deletions
|
@ -439,6 +439,8 @@ __declspec(dllimport) extern int finite(double);
|
|||
#define S_IXOTH 0001
|
||||
#endif
|
||||
|
||||
#define S_IFLNK 0xa000
|
||||
|
||||
/*
|
||||
* define this so we can do inplace editing
|
||||
*/
|
||||
|
|
|
@ -4956,6 +4956,9 @@ fileattr_to_unixmode(DWORD attr, const WCHAR *path)
|
|||
if (attr & FILE_ATTRIBUTE_DIRECTORY) {
|
||||
mode |= S_IFDIR | S_IEXEC;
|
||||
}
|
||||
else if (attr & FILE_ATTRIBUTE_REPARSE_POINT) {
|
||||
mode |= S_IFLNK;
|
||||
}
|
||||
else {
|
||||
mode |= S_IFREG;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue