Details
-
Improvement
-
Status: Closed
-
Normal
-
Resolution: Won't Do
-
PUP 3.4.0, PUP 3.4.1, PUP 3.4.2
-
None
-
Windows
-
2
Description
The built-in Ruby classes FileUtils.chmod and File.chmod do not behave correctly under Windows.
We do however have a nice method Puppet::Util::Windows::Security.set_mode(mode, path) that does it's best job to simulate a POSIX mode and roundtrip it properly.
All call sites that use the Ruby methods should be updated to use a new Puppet::FileSystem.chmod that delegates properly to the appropriate OS specific method.
This should be a fairly mechanical change to the codebase.
Attachments
Issue Links
- relates to
-
PUP-5019 Puppet::FileSystem should handle more file operations like copy/move/delete
-
- Closed
-