Skip to content

Commit 1112179

Browse files
authored
Merge pull request #551 from bitoku/filemode
fix: Use octal literal syntax for file mode in tar header
2 parents 5966881 + e303886 commit 1112179

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/pkg/libartifact/store/store.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,7 @@ func copyTrustedImageBlobToTarStream(ctx context.Context, imgSrc types.ImageSour
742742
now := time.Now()
743743
header := tar.Header{
744744
Name: filename,
745-
Mode: 600,
745+
Mode: 0o600,
746746
Size: srcSize,
747747
ModTime: now,
748748
ChangeTime: now,

0 commit comments

Comments
 (0)