From 026bf90b29314486d64f93c0633dffda8ac58379 Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Mon, 13 Apr 2020 13:13:01 +0100 Subject: ash: reset ANSI emulation when BB_SKIP_ANSI_EMULATION changes Update the skip status on the first call to skip_ansi_emulation() and whenever the BB_SKIP_ANSI_EMULATION variable changes. --- include/libbb.h | 1 + include/mingw.h | 1 + 2 files changed, 2 insertions(+) (limited to 'include') diff --git a/include/libbb.h b/include/libbb.h index 8979665b2..7077f0e0d 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -2215,6 +2215,7 @@ extern const char bb_busybox_exec_path[] ALIGN1; #define BB_PATH_ROOT_PATH "PATH=/sbin;/usr/sbin;/bin;/usr/bin" BB_ADDITIONAL_PATH #define PATH_SEP ';' #define PATH_SEP_STR ";" +extern const char bb_skip_ansi_emulation[] ALIGN1; #endif extern const char bb_PATH_root_path[] ALIGN1; /* BB_PATH_ROOT_PATH */ #define bb_default_root_path (bb_PATH_root_path + sizeof("PATH")) diff --git a/include/mingw.h b/include/mingw.h index 3516cd31c..0fead43c9 100644 --- a/include/mingw.h +++ b/include/mingw.h @@ -538,3 +538,4 @@ char *xabsolute_path(char *path); char *get_drive_cwd(const char *path, char *buffer, int size); void fix_path_case(char *path); void seek_sparse(int fd, size_t size); +int skip_ansi_emulation(int reset); -- cgit v1.2.3-55-g6feb