1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/fileutils.rb (FileUtils#chown_R): Do not skip traversal even

if user and group are both nil, to be consistent with #chown and
  other commands.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41860 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
knu 2013-07-09 09:03:36 +00:00
parent 3488db9455
commit 1e2a6a20e5
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,9 @@
Tue Jul 9 18:02:38 2013 Akinori MUSHA <knu@iDaemons.org>
* lib/fileutils.rb (FileUtils#chown_R): Do not skip traversal even
if user and group are both nil, to be consistent with #chown and
other commands.
Tue Jul 9 17:58:26 2013 Akinori MUSHA <knu@iDaemons.org>
* test/fileutils/test_fileutils.rb

View file

@ -1081,7 +1081,6 @@ module FileUtils
return if options[:noop]
uid = fu_get_uid(user)
gid = fu_get_gid(group)
return unless uid or gid
list.each do |root|
Entry_.new(root).traverse do |ent|
begin