Skip to content

Commit 569742b

Browse files
committed
contrib/fs-idmap: Allow relative paths
Signed-off-by: Rodrigo Campos <[email protected]>
1 parent 3d827f8 commit 569742b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/cmd/fs-idmap/fs-idmap.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ func main() {
1616
}
1717

1818
src := os.Args[1]
19-
treeFD, err := unix.OpenTree(-1, src, uint(unix.OPEN_TREE_CLONE|unix.OPEN_TREE_CLOEXEC|unix.AT_EMPTY_PATH))
19+
treeFD, err := unix.OpenTree(unix.AT_FDCWD, src, uint(unix.OPEN_TREE_CLONE|unix.OPEN_TREE_CLOEXEC|unix.AT_EMPTY_PATH))
2020
if err != nil {
2121
log.Fatalf("error calling open_tree %q: %v", src, err)
2222
}

0 commit comments

Comments
 (0)