Skip to content

Commit 97c0711

Browse files
committed
contrib/fs-idmap: Don't hardcode sleep path
Let's just rely on the lookup performed to find the sleep binary. This didn't cause any issues as far as I know, I just saw this while doing other cleanups. Signed-off-by: Rodrigo Campos <[email protected]>
1 parent 34acd8e commit 97c0711

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
@@ -22,7 +22,7 @@ func main() {
2222
}
2323
defer unix.Close(treeFD)
2424

25-
cmd := exec.Command("/usr/bin/sleep", "5")
25+
cmd := exec.Command("sleep", "5")
2626
cmd.SysProcAttr = &syscall.SysProcAttr{
2727
Cloneflags: syscall.CLONE_NEWUSER,
2828
UidMappings: []syscall.SysProcIDMap{{ContainerID: 0, HostID: 65536, Size: 65536}},

0 commit comments

Comments
 (0)