From 1e2a6a20e5a6bc2ab3d77e398b511202bd489d0d Mon Sep 17 00:00:00 2001 From: knu Date: Tue, 9 Jul 2013 09:03:36 +0000 Subject: [PATCH] * 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 --- ChangeLog | 6 ++++++ lib/fileutils.rb | 1 - 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 1621958e1d..b91da06e8b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Tue Jul 9 18:02:38 2013 Akinori MUSHA + + * 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 * test/fileutils/test_fileutils.rb diff --git a/lib/fileutils.rb b/lib/fileutils.rb index 754b350dc1..cc987bfafd 100644 --- a/lib/fileutils.rb +++ b/lib/fileutils.rb @@ -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