From: GOTO Kentaro Date: 2002-09-16T16:05:13+09:00 Subject: Re: Syntax errors with webrick 1.2. head of cvs with Div At Mon, 16 Sep 2002 11:41:15 +0900, Booth, Peter wrote: > following errors. Does anyone know where "etc" should be found and what > The problem with the following is: [...] > C:\apps\workspace\rubyDev\src>ruby -rdebug tofuRunner.rbw > Debug.rb > Emacs support available. > > tofuRunner.rbw:1:require 'tofu/tofulet' > (rdb:1) c > c:/ruby/lib/ruby/site_ruby/1.7/webrick/utils.rb:13: `No such file to load -- > etc' (LoadError) > [2002-09-15 22:32:12] INFO WEBrick 1.2.2 (2002-09-15) "etc" is a standard extension which wraps Unix password database related functions. So it is not avairable on some platforms, e.g., mswin32. WEBrick uses Etc::getgrnam to provide Utils::su (switch user), which helps a user change process owner to non privilege user after opening the privilege port 80 by privilege user. This roundabout procedure is a well known way to reduce security risk. But this procedure isn't necessary on non Unix platforms. So you can ignore absence of Etc. WEBrick would rescues LoadError and would defines Util::su as empty function instead if "etc" isn't available indeed. By the way, within the debug.rb, any errors are reported even if that would be rescued by the target script. Should some messages to relax user be print? Thanks, -- Gotoken