Skip to content

Commit 7f0dec8

Browse files
committed
Fix nsenter working dir for child
Signed-off-by: apostasie <[email protected]>
1 parent 1a55c72 commit 7f0dec8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/rootlessutil/parent_linux.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ func ParentMain(hostGatewayIP string) error {
102102
log.L.WithError(err).Warn("unable to determine working directory")
103103
} else {
104104
args = append(args, "-w"+wd)
105+
os.Setenv("PWD", wd)
105106
}
106107

107108
args = append(args, "--preserve-credentials",

0 commit comments

Comments
 (0)