[前][次][番号順一覧][スレッド一覧]

ruby-changes:37940

From: nobu <ko1@a...>
Date: Thu, 19 Mar 2015 11:38:05 +0900 (JST)
Subject: [ruby-changes:37940] nobu:r50021 (trunk): win32.c: no S_IWGRP and S_IWOTH

nobu	2015-03-19 11:37:59 +0900 (Thu, 19 Mar 2015)

  New Revision: 50021

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=50021

  Log:
    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.

  Modified files:
    trunk/win32/win32.c
Index: win32/win32.c
===================================================================
--- win32/win32.c	(revision 50020)
+++ win32/win32.c	(revision 50021)
@@ -4976,8 +4976,8 @@ fileattr_to_unixmode(DWORD attr, const W https://github.com/ruby/ruby/blob/trunk/win32/win32.c#L4976
 	}
     }
 
-    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 stati https://github.com/ruby/ruby/blob/trunk/win32/win32.c#L5132
 	lstrcatW(buf1, L".");
 
     ret = winnt_stat(buf1, st);
-    if (ret == 0) {
-	st->st_mode &= ~(S_IWGRP | S_IWOTH);
-    }
     if (v)
 	ALLOCV_END(v);
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]