diff --git a/src/swmod_lxc.c b/src/swmod_lxc.c index 2f626ad19af74ee1adc77a13d502080d21218cee..01e61147fe4e42d38f91d6aebeb3530e3acda019 100644 --- a/src/swmod_lxc.c +++ b/src/swmod_lxc.c @@ -708,7 +708,7 @@ static int lxc_attach_run_cmd(void *args) return 0; } - pp = popen(cmd, "r"); + pp = popen(cmd, "r"); // flawfinder: ignore if (pp != NULL) { char line[MAX_LEN_512] = {0}; diff --git a/src/tools.c b/src/tools.c index e3c925ec07b46bfe30badfd8e683a6fd43ae3ef0..a6a395c98ca632f408289102dedc4284c4812e7d 100644 --- a/src/tools.c +++ b/src/tools.c @@ -268,7 +268,7 @@ int run_cmd(const char *cmd, char *output, size_t out_len) // init the buffer memset(output, 0, out_len); - pp = popen(cmd, "r"); + pp = popen(cmd, "r"); // flawfinder: ignore if (pp != NULL) { char line[512] = {0}; @@ -291,7 +291,7 @@ int run_cmd_no_output(const char *cmd) if (cmd == NULL) return 0; - if (0 != system(cmd)) + if (0 != system(cmd)) // flawfinder: ignore return -1; return 0;