Browse code

This permission should be interpreted as octal, not decimal

Docker-DCO-1.1-Signed-off-by: Kato Kazuyoshi <kato.kazuyoshi@gmail.com> (github: kzys)

Kato Kazuyoshi authored on 2014/04/17 00:16:07
Showing 1 changed files
... ...
@@ -68,7 +68,7 @@ func ApplyLayer(dest string, layer ArchiveReader) error {
68 68
 			parent := filepath.Dir(hdr.Name)
69 69
 			parentPath := filepath.Join(dest, parent)
70 70
 			if _, err := os.Lstat(parentPath); err != nil && os.IsNotExist(err) {
71
-				err = os.MkdirAll(parentPath, 600)
71
+				err = os.MkdirAll(parentPath, 0600)
72 72
 				if err != nil {
73 73
 					return err
74 74
 				}