Bug #3556 ยป 0001-Workaround-File.stat-Errno-EACCES-bug-for-mkdir_p.patch
lib/fileutils.rb | ||
---|---|---|
OPT_TABLE['makedirs'] = [:mode, :noop, :verbose]
|
||
def fu_mkdir(path, mode) #:nodoc:
|
||
path = path.sub(%r</\z>, '')
|
||
path.sub!(%r</\z>, '')
|
||
if mode
|
||
Dir.mkdir path, mode
|
||
File.chmod mode, path
|