aboutsummaryrefslogtreecommitdiffstats
path: root/win32
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-03-19 02:37:59 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-03-19 02:37:59 +0000
commite2853f5d815fe341b540a4aa8a3ab0dea1c9290c (patch)
treeabd70dcf44999d88b0eb6e621027ec300e595a5d /win32
parent663eefcb6fad1c2384a4675c0a665390c6380133 (diff)
downloadruby-e2853f5d815fe341b540a4aa8a3ab0dea1c9290c.tar.gz
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
Diffstat (limited to 'win32')
-rw-r--r--win32/win32.c7
1 files 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);