Hi,

In message "[patch] fileutils.rb - bug in 'rm_r'"
    on 03/04/14, Johan Holmberg <holmberg / iar.se> writes:

|I believe there is a bug in the "FileUtils.rm_r" method.
|The error I get if I do
|
|    $ ruby -rfileutils -e 'FileUtils.rm_r "non-existing"'
|    /home/holmberg/local/lib/ruby/1.8/fileutils.rb:506:in `rm_r': \
|        undefined method `symlink?' for nil (NoMethodError)
|        ...
|
|seem wrong. Such an error (NoMethodError) should problably not be
|seen by the user of the module. With the patch supplied below the
|error is changed to
|
|    $ ruby -I ~ -rfileutils -e 'FileUtils.rm_r "non-existing"'
|    /home/holmberg/fileutils.rb:520:in `lstat': \
|        No such file or directory - "non-existing" (Errno::ENOENT)
|        ...
|
|which is closer to the actual cause of the error (that the file
|doesn't exist).

Thank you.  I will merge your fix.

							matz.