Bug #6796
closed
generic methods permissions (non recursive) is indeed recursive
Added by Nicolas CHARLES over 9 years ago.
Updated over 2 years ago.
Description
Using "method_call" usebundle => permissions("/chroot/sftp", "711", "root", "root") will recursively change permissions on /chroot/sftp, which is not what is expected
- Status changed from New to In progress
depth => "0" seems to do the same as depth => "1".
A solution could be to remove the depth_search when depth is 0.
In the case of file copy, the depth is handled correctly, only the base dir is created. The problem only happens in the DepthSearch function which manages file attributes updates.
- Status changed from In progress to Pending technical review
- Assignee changed from Alexis Mousset to Nicolas CHARLES
- Pull Request set to https://github.com/Normation/ncf/pull/211
- Status changed from Pending technical review to In progress
- Assignee changed from Nicolas CHARLES to Alexis Mousset
- Status changed from In progress to Pending technical review
- Assignee changed from Alexis Mousset to Nicolas CHARLES
- Status changed from Pending technical review to Pending release
- % Done changed from 0 to 100
- Status changed from Pending release to Released
- Target version changed from 0.x to ncf-0.x
- Priority set to 0
- Project changed from 41 to Rudder
- Category set to Generic methods
Also available in: Atom
PDF