提交 294b8631 编写于 作者: G gaohuatao

fix exec -ti bug

Signed-off-by: Ngaohuatao <gaohuatao@huawei.com>
上级 5c79f3b4
......@@ -600,10 +600,10 @@ static void execute_lxc_attach(const char *name, const char *path, const struct
add_array_kv(params, args_len, &i, "--suffix", request->suffix);
if (!request->tty) {
add_array_elem(params, PARAM_NUM, &i, "--disable-pty");
add_array_elem(params, args_len, &i, "--disable-pty");
}
if (request->open_stdin) {
add_array_elem(params, PARAM_NUM, &i, "--open-stdin");
add_array_elem(params, args_len, &i, "--open-stdin");
}
add_array_elem(params, args_len, &i, "--");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册