Fix "-Werror=shadow" Error of open source nsjail accepted/tizen/unified/20210903.044531 submit/tizen/20210903.005907
authorKunhoon Baik <knhoon.baik@samsung.com>
Fri, 3 Sep 2021 00:55:02 +0000 (09:55 +0900)
committerKunhoon Baik <knhoon.baik@samsung.com>
Fri, 3 Sep 2021 00:55:02 +0000 (09:55 +0900)
commit705611074673ff9487b616718e899bea0008c454
tree6cb1be10e6e39adb71f5cfa92a121ac1b8989bfe
parentadcd55edddc105e1eabf00e33417f96fcf66f685
Fix "-Werror=shadow" Error of open source nsjail

The arg env of systemExe function shadows global env variable.
 - Local Function : int systemExe(const std::vector<std::string>& args, char** env);
 - Global : static __thread jmp_buf env;

-Werror=shadow options catches the issue.
Thus, the arg env of systemExe is changed to exec_env to avoid the compiler issue.

cf) This patch is not yet contributed to nsjail open source.
subproc.cc