-
Notifications
You must be signed in to change notification settings - Fork 211
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Storage fix-permissions should handle missing config
When a config file is not present in PORTER_HOME, we don't do a safe job of detecting that and then skipping trying to set permission on it. So we end up calling fixFile on an empty string, which changes the permissions on the current working directory, removing the x bit... I've fixed the command to check if the config file exists before trying to set it and also added more safety checks in fixFile to prevent us from changing permissions on a directory, or to a path outside of PORTER_HOME. Signed-off-by: Carolyn Van Slyck <[email protected]>
- Loading branch information
Showing
3 changed files
with
41 additions
and
3 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
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
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