mirror of
https://github.com/clearlinux/hyperstart.git
synced 2026-08-23 07:15:56 +00:00
chdir to the specific dir
Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com>
This commit is contained in:
@@ -586,6 +586,11 @@ static int hyper_do_exec_cmd(void *data)
|
||||
goto exit;
|
||||
}
|
||||
|
||||
if (exec->workdir && chdir(exec->workdir) < 0) {
|
||||
perror("change work directory failed");
|
||||
goto exit;
|
||||
}
|
||||
|
||||
if (hyper_setup_exec_user(exec) < 0) {
|
||||
fprintf(stderr, "setup exec user failed\n");
|
||||
goto exit;
|
||||
|
||||
Reference in New Issue
Block a user