From: Erik Veenstra Date: 2005-12-05T01:42:33+09:00 Subject: Re: "disallow sticky world writable directory in PATH": Why? > > Found in ChangeLog-1.8.3: > > > > Wed Sep 21 02:44:09 2005 Yukihiro Matsumoto > > 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... > > $VERBOSE = nil I noticed that the check on ENV["PATH"] is done only once (see test3). That means that we can turn verbose message off, use ENV["PATH"] as a dummy statement and turn verbose message back on (see test4). All other references to ENV["PATH"] are unchecked. All other messages are still displayed. Thanks. gegroet, Erik V. - http://www.erikveen.dds.nl/ ---------------------------------------------------------------- $ ruby -v ruby 1.8.3 (2005-09-21) [i686-linux] $ cat /tmp/test/test3.rb ENV["PATH"] ENV["PATH"] $ PATH=$PATH:/tmp/test ruby /tmp/test/test3.rb /tmp/test/test3.rb:1: warning: Insecure world writable dir /tmp, mode 041777 ---------------------------------------------------------------- $ cat /tmp/test/test4.rb $VERBOSE=nil ENV["PATH"] $VERBOSE=true ENV["PATH"] $ PATH=$PATH:/tmp/test ruby /tmp/test/test4.rb ----------------------------------------------------------------