summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-06-04 23:30:48 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-06-04 23:30:48 +0000
commit45815f9c9d334e0d7a0c40ba939661efdba08153 (patch)
treecc9ab845e253c218a81614f32adbffc5810914f6 /file.c
parent72992b97d35813a5d21c384b465517a361163717 (diff)
downloadruby-45815f9c9d334e0d7a0c40ba939661efdba08153.tar.gz
* file.c (rb_f_test): 'W' should test writable by real uid/git,
not world writable. [ruby-core:30587] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28160 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'file.c')
-rw-r--r--file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/file.c b/file.c
index 5c037fe36f..7bb4e0bdc5 100644
--- a/file.c
+++ b/file.c
@@ -4099,7 +4099,7 @@ rb_f_test(int argc, VALUE *argv)
return rb_file_writable_p(0, argv[1]);
case 'W':
- return rb_file_world_writable_p(0, argv[1]);
+ return rb_file_writable_real_p(0, argv[1]);
case 'x':
return rb_file_executable_p(0, argv[1]);