chunked: fix opening parent dir
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
parent
2278cb1e0e
commit
c811876d13
|
|
@ -66,7 +66,7 @@ func copyFileContent(srcFd int, fileMetadata *fileMetadata, dirfd int, mode os.F
|
|||
if useHardLinks {
|
||||
destDirPath := filepath.Dir(destFile)
|
||||
destBase := filepath.Base(destFile)
|
||||
destDir, err := openFileUnderRoot(destDirPath, dirfd, 0, mode)
|
||||
destDir, err := openFileUnderRoot(destDirPath, dirfd, 0, 0)
|
||||
if err == nil {
|
||||
defer destDir.Close()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue