ansible/ansible — pull request #7245 by tksmd (2014-05-01 16:48:22+00:00)
Title: fix #7244 recursive copy fails when setting directory attributes

The problem caused by the order of "new_directory_list" returned from split_pre_existing_dir in copy module. As in the example described in the issue, split_pre_existing_dir called to copy "subdir/subdir2/subdir3/subdir4/qux.txt" originally returned new_directory_list [subdir4, subdir3]. Then you got the error when calling "adjust_recursive_directory_permissions" by trying to modify invalid directory "subdir2/subdir4". So I reversed the order of new_directory_list returned from split_pre_existing_dir method.

You can check this modification by running test_copy test included in non_destructive test
```
$ cd test/integration
$ TEST_FLAGS="--tags=test_copy" make non_destructive
```