зеркало из https://github.com/github/ruby.git
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:
Родитель
e2853f5d81
Коммит
5155a402ab
|
@ -439,6 +439,8 @@ __declspec(dllimport) extern int finite(double);
|
||||||
#define S_IXOTH 0001
|
#define S_IXOTH 0001
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define S_IFLNK 0xa000
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* define this so we can do inplace editing
|
* 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) {
|
if (attr & FILE_ATTRIBUTE_DIRECTORY) {
|
||||||
mode |= S_IFDIR | S_IEXEC;
|
mode |= S_IFDIR | S_IEXEC;
|
||||||
}
|
}
|
||||||
|
else if (attr & FILE_ATTRIBUTE_REPARSE_POINT) {
|
||||||
|
mode |= S_IFLNK;
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
mode |= S_IFREG;
|
mode |= S_IFREG;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче