diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | lib/fileutils.rb | 1 |
2 files changed, 6 insertions, 1 deletions
@@ -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 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 |