From: s.wanabe@...
Date: 2017-05-16T04:23:38+00:00
Subject: [ruby-core:81192] [Ruby trunk Bug#8547] FileUtils.chmod("a+r", "foobar", verbose: true) crashes

Issue #8547 has been updated by wanabe (_ wanabe).


I guess it was fixed at r41853 before v2_1_0_preview1 and backported to ruby2_0_0 at r41946 [Backport #8633].

----------------------------------------
Bug #8547: FileUtils.chmod("a+r", "foobar", verbose: true) crashes
https://bugs.ruby-lang.org/issues/8547#change-64845

* Author: gurgeous (Adam Doppelt)
* Status: Third Party's Issue
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.0.0p195
* Backport: 
----------------------------------------
To reproduce in IRB:

>> require "fileutils" ; FileUtils.chmod("a+r", "foobar", verbose: true)

Here's the stack:

NoMethodError: undefined method `mode_to_s' for FileUtils:Module
	from ~/.rbenv/versions/2.0.0-p195/lib/ruby/2.0.0/fileutils.rb:970:in `chmod'

This ONLY crashes with :verbose. If you leave off :verbose it skips the call to mode_to_s, so there's no crash.



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>