Skip to content

Commit

Permalink
Merge pull request #127 from abeaumont/fix/mkdir-permissions
Browse files Browse the repository at this point in the history
runtime: Fix permissions in mkdir
  • Loading branch information
abeaumont authored Oct 26, 2017
2 parents aaa9681 + 470d493 commit 5af1a48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions runtime/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func (s *storage) Install(d DriverImage, update bool) (*DriverImageStatus, error
}

func (s *storage) tempPath() (string, error) {
if err := os.MkdirAll(s.temp, 0655); err != nil {
if err := os.MkdirAll(s.temp, 0755); err != nil {
return "", err
}

Expand All @@ -84,7 +84,7 @@ func (s *storage) tempPath() (string, error) {
func (s *storage) moveImage(source string, d DriverImage, di Digest) error {
root := s.rootFSPath(d, di)
dir := filepath.Dir(root)
if err := os.MkdirAll(dir, 0655); err != nil {
if err := os.MkdirAll(dir, 0755); err != nil {
return err
}

Expand Down

0 comments on commit 5af1a48

Please sign in to comment.