diff options
author | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-11-22 14:53:06 +0000 |
---|---|---|
committer | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-11-22 14:53:06 +0000 |
commit | d2cd7f72dbca80985ee623908dac2d14ccbd75ad (patch) | |
tree | a66497fd4462a6c617d01e33a786c121c28abda7 | |
parent | 3569a8ecf8f52aaebb2cdecc1754411953e8aaeb (diff) |
merges r20304 from trunk into ruby_1_9_1.
* file.c (rb_file_world_writable_p): should return nil for non
world-writable files.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@20328 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | file.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Sat Nov 22 18:24:24 2008 Yukihiro Matsumoto <matz@ruby-lang.org> + + * file.c (rb_file_world_writable_p): should return nil for non + world-writable files. + Sat Nov 22 10:31:25 2008 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp> * ext/tk/lib/tkextlib/blt.rb, ext/tk/lib/tkextlib/blt/vector.rb: @@ -1299,7 +1299,7 @@ rb_file_world_writable_p(VALUE obj, VALUE fname) #ifdef S_IWOTH struct stat st; - if (rb_stat(fname, &st) < 0) return Qfalse; + if (rb_stat(fname, &st) < 0) return Qnil; if ((st.st_mode & (S_IWOTH)) == S_IWOTH) { return UINT2NUM(st.st_mode & (S_IRUGO|S_IWUGO|S_IXUGO)); } |