HomePhorge

(PUP-1255) Fix assumed default file mode to 0644
55cc32246946Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(PUP-1255) Fix assumed default file mode to 0644

When a file is created with content, the assumed default mode should be 0644,
but this wasn't being explicitly set. The secure file replacement (in
Puppet::Util.replace_file) was instead defaulting to a file mode of 0600.
The assumed default mode is now explicitly set when calling replace_file.

The code path for file creation without content continues to set a umask of
0022 if no mode is specified on the resource, so new files are implicitly
created with a mode of 0644.

Details

Provenance
Dominic Cleal <dcleal@redhat.com>Authored on
Kylo Ginsberg <kylo@puppetlabs.com>Committed on Dec 30 2013, 9:32 PM
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU1988b0729bde: Merge tag '3.4.1' into stable
Branches
Unknown
Tags
Unknown

Event Timeline

Kylo Ginsberg <kylo@puppetlabs.com> committed rPU55cc32246946: (PUP-1255) Fix assumed default file mode to 0644 (authored by Dominic Cleal <dcleal@redhat.com>).Dec 30 2013, 9:32 PM