Skip to content

Commit 7595f18

Browse files
Merge pull request #2301 from giuseppe/fix-arg-to-open-tree
idmap: fix first argument to open_tree
2 parents a6623f0 + 107e537 commit 7595f18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/idmap/idmapped_utils.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ func CreateIDMappedMount(source, target string, pid int) error {
2525
}
2626
defer userNsFile.Close()
2727

28-
targetDirFd, err := unix.OpenTree(0, source, unix.OPEN_TREE_CLONE)
28+
targetDirFd, err := unix.OpenTree(unix.AT_FDCWD, source, unix.OPEN_TREE_CLONE)
2929
if err != nil {
3030
return &os.PathError{Op: "open_tree", Path: source, Err: err}
3131
}

0 commit comments

Comments
 (0)