Skip to content

Commit e303886

Browse files
committed
Use octal literal syntax for file mode in tar header
Signed-off-by: Ayato Tokubi <[email protected]>
1 parent 5966881 commit e303886

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)