Skip to content

Commit

Permalink
runtime: Fix permissions in mkdir
Browse files Browse the repository at this point in the history
Signed-off-by: Alfredo Beaumont <alfredo.beaumont@gmail.com>
  • Loading branch information
abeaumont committed Oct 26, 2017
1 parent aaa9681 commit 470d493
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 470d493

Please sign in to comment.