From 59c5c44eb631dc85ac39860276e318e7870a9a1e Mon Sep 17 00:00:00 2001 From: sangwook lee Date: Wed, 7 Oct 2020 15:28:20 +0900 Subject: [PATCH] "Fix kona issue DF200921-00401" Change-Id: Ibca19f4d06aa716ae2462ee45469b02f67857bfd Signed-off-by: sangwook lee --- src/default_plugin_appcmd.c | 1 + src/services.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/default_plugin_appcmd.c b/src/default_plugin_appcmd.c index fdbf422..d6d04ff 100755 --- a/src/default_plugin_appcmd.c +++ b/src/default_plugin_appcmd.c @@ -541,6 +541,7 @@ static int exec_appcmd_shell_process(appcmd_info* p_info) { char *envp[] = { "TERM=linux", /* without this, some programs based on screen can't work, e.g. top */ "DISPLAY=:0", /* without this, some programs based on without launchpad can't work */ + "HISTFILE=", /*kona issue https://kona.sec.samsung.net/kona_server/workitem/defectInfo.do?idWorkItem=DF200921-00401 */ NULL, NULL, NULL, diff --git a/src/services.c b/src/services.c index bba01a0..f26d0ae 100755 --- a/src/services.c +++ b/src/services.c @@ -682,6 +682,7 @@ static int create_subproc_thread(const char *name, int lines, int columns) envp[envp_cnt++] = strdup("TERM=linux"); envp[envp_cnt++] = strdup("DISPLAY=:0"); + envp[envp_cnt++] = strdup("HISTFILE="); if (should_drop_privileges()) { if (g_sdk_home_dir_env) { @@ -957,6 +958,7 @@ static int create_extcmd_subproc_thread(const char *name, int lines, int columns envp[envp_cnt++] = strdup("TERM=linux"); envp[envp_cnt++] = strdup("DISPLAY=:0"); + envp[envp_cnt++] = strdup("HISTFILE="); if (should_drop_privileges()) { if (g_sdk_home_dir_env) { -- 2.34.1