Project

General

Profile

Actions

Bug #8547

closed

FileUtils.chmod("a+r", "foobar", verbose: true) crashes

Added by gurgeous (Adam Doppelt) over 11 years ago. Updated over 7 years ago.

Status:
Third Party's Issue
Assignee:
-
Target version:
-
ruby -v:
ruby 2.0.0p195
Backport:
[ruby-core:55564]

Description

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.


Related issues 1 (0 open1 closed)

Related to Backport200 - Backport #8633: backport r41853 (fix File.chmod error in :verbose mode)Closednagachika (Tomoyuki Chikanaga)07/13/2013Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0