forked from openhpc/ohpc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
components: Proper fix for openhpc#520
The fix in 8744b04 doesn't actually resolve the issue with a restrictive umask. Quoting the [mkpath](https://perldoc.perl.org/5.10.0/File/Path.html) page: mode The numeric permissions mode to apply to each created directory (defaults to 0777), to be modified by the current umask. If the directory already exists (and thus does not need to be created), the permissions will not be modified. This means that the mode settings that were applied previously still respected the restrictive umask and resulted in a nonworking pxeboot configuration. This commit modifies the previous fix to use [make_path](https://perldoc.perl.org/File/Path.html) instead since the `chmod` parameter does precisely what we want. chmod => $num Takes a numeric mode to apply to each created directory (not modified by the current umask). If the directory already exists (and thus does not need to be created), the permissions will not be modified. Signed-off-by: Sol Jerome <[email protected]>
- Loading branch information
Showing
1 changed file
with
58 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters