You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
When file.copy creates parent directories, it creates those with file permissions specified in mode. Directories generally should have the executable bit set though when read permissions are granted.
Setup
Irrelevant.
Steps to Reproduce the behavior
create test file:
file.managed:
- name:/tmp/file- replace:false
/tmp/test will have 644 perms:
file.copy:
- name:/tmp/test/test- source:/tmp/file- makedirs:true- mode:'0644'display perms:
module.run:
- file.get_mode:- path:/tmp/testremove test files:
file.absent:
- names:- /tmp/test- /tmp/file
Expected behavior
Create directories with sensible permissions.
Description
When
file.copy
creates parent directories, it creates those with file permissions specified inmode
. Directories generally should have the executable bit set though when read permissions are granted.Setup
Irrelevant.
Steps to Reproduce the behavior
Expected behavior
Create directories with sensible permissions.
Screenshots
Versions Report
salt --versions-report
(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)The text was updated successfully, but these errors were encountered: