From e2853f5d815fe341b540a4aa8a3ab0dea1c9290c Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 19 Mar 2015 02:37:59 +0000 Subject: 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 --- win32/win32.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/win32/win32.c b/win32/win32.c index d2fde0751e..a5e182b449 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -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); -- cgit v1.2.3