E
Erik Veenstra
Found in ChangeLog-1.8.3:
Wed Sep 21 02:44:09 2005 Yukihiro Matsumoto <[email protected]>
file.c (path_check_0): disallow sticky world writable directory in PATH (and $LOAD_PATH). [ruby-dev:27226]
Why is this changed in Ruby 1.8.3?
And how can I work around this check? It's annyoing...
I added a simple test below.
Thanks.
gegroet,
Erik V. - http://www.erikveen.dds.nl/
----------------------------------------------------------------
$ cat /tmp/test/test1.rb
ENV
$ cat /tmp/test/test2.rb
ENV["PATH"]
----------------------------------------------------------------
$ useruby182
ruby 1.8.2 (2004-12-24) [i686-linux]
$ PATH=$PATH:/tmp/test ruby /tmp/test/test1.rb
$ PATH=$PATH:/tmp/test ruby /tmp/test/test2.rb
----------------------------------------------------------------
$ useruby183
ruby 1.8.3 (2005-09-21) [i686-linux]
$ PATH=$PATH:/tmp/test ruby /tmp/test/test1.rb
$ PATH=$PATH:/tmp/test ruby /tmp/test/test2.rb
/tmp/test/test2.rb:1: warning: Insecure world writable dir /tmp, mode 041777
----------------------------------------------------------------
Wed Sep 21 02:44:09 2005 Yukihiro Matsumoto <[email protected]>
file.c (path_check_0): disallow sticky world writable directory in PATH (and $LOAD_PATH). [ruby-dev:27226]
Why is this changed in Ruby 1.8.3?
And how can I work around this check? It's annyoing...
I added a simple test below.
Thanks.
gegroet,
Erik V. - http://www.erikveen.dds.nl/
----------------------------------------------------------------
$ cat /tmp/test/test1.rb
ENV
$ cat /tmp/test/test2.rb
ENV["PATH"]
----------------------------------------------------------------
$ useruby182
ruby 1.8.2 (2004-12-24) [i686-linux]
$ PATH=$PATH:/tmp/test ruby /tmp/test/test1.rb
$ PATH=$PATH:/tmp/test ruby /tmp/test/test2.rb
----------------------------------------------------------------
$ useruby183
ruby 1.8.3 (2005-09-21) [i686-linux]
$ PATH=$PATH:/tmp/test ruby /tmp/test/test1.rb
$ PATH=$PATH:/tmp/test ruby /tmp/test/test2.rb
/tmp/test/test2.rb:1: warning: Insecure world writable dir /tmp, mode 041777
----------------------------------------------------------------