Skip to content
This repository was archived by the owner on Feb 8, 2021. It is now read-only.

Commit 7727359

Browse files
authored
Merge pull request #351 from keloyang/exec-default-home
Change exec default home dir
2 parents 14a6e2f + 07cb542 commit 7727359

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/exec.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ static int hyper_do_exec_cmd(struct hyper_exec *exec, int pid_efd, int process_i
535535
clearenv();
536536

537537
// set early env. the container env config can overwrite it
538-
setenv("HOME", "/root", 1);
538+
setenv("HOME", "/", 1);
539539
setenv("HOSTNAME", exec->pod->hostname, 1);
540540
if (exec->tty)
541541
setenv("TERM", "xterm", 1);

0 commit comments

Comments
 (0)