diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-06-04 23:30:48 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-06-04 23:30:48 +0000 |
commit | fd4417f8fe0c82c7c2f9adaa556f06551d1ed111 (patch) | |
tree | b99c330fbc3250ecd5e0de23f06bd914c9444443 /file.c | |
parent | df25a131165d5bf858bb67f4e34febb0dfdb7a26 (diff) |
* 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/branches/ruby_1_9_2@28160 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -4107,7 +4107,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]); |