1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

win32.c: no S_IWGRP and S_IWOTH

* win32/win32.c (fileattr_to_unixmode): do not set S_IWGRP and
  S_IWOTH reset in wstati64.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50021 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2015-03-19 02:37:59 +00:00
parent 663eefcb6f
commit e2853f5d81

View file

@ -4976,8 +4976,8 @@ fileattr_to_unixmode(DWORD attr, const WCHAR *path)
}
}
mode |= (mode & 0700) >> 3;
mode |= (mode & 0700) >> 6;
mode |= (mode & 0500) >> 3;
mode |= (mode & 0500) >> 6;
return mode;
}
@ -5132,9 +5132,6 @@ wstati64(const WCHAR *path, struct stati64 *st)
lstrcatW(buf1, L".");
ret = winnt_stat(buf1, st);
if (ret == 0) {
st->st_mode &= ~(S_IWGRP | S_IWOTH);
}
if (v)
ALLOCV_END(v);