Skip to content

Commit 4f0de4e

Browse files
committed
chunked: use openTmpFile instead of open(O_TMPFILE)
Signed-off-by: Giuseppe Scrivano <[email protected]>
1 parent 4b7f9d3 commit 4f0de4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/chunked/storage_linux.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ func (c *chunkedDiffer) convertTarToZstdChunked(destDirectory string, payload *o
163163

164164
defer diff.Close()
165165

166-
fd, err := unix.Open(destDirectory, unix.O_TMPFILE|unix.O_RDWR|unix.O_CLOEXEC, 0o600)
166+
fd, err := openTmpFile(destDirectory)
167167
if err != nil {
168168
return 0, nil, "", nil, &fs.PathError{Op: "open", Path: destDirectory, Err: err}
169169
}

0 commit comments

Comments
 (0)