#ifdef KNET_BSD
"ifconfig %s | grep -q %s", nozzle->name, testipv6_1);
#endif
- err = execute_shell_command(verifycmd, &error_string);
+ err = execute_bin_sh_command(verifycmd, &error_string);
if (error_string) {
printf("Error string: %s\n", error_string);
free(error_string);
goto out_clean;
}
- err = execute_shell_command(verifycmd, &error_string);
+ err = execute_bin_sh_command(verifycmd, &error_string);
if (error_string) {
printf("Error string: %s\n", error_string);
free(error_string);
#ifdef KNET_BSD
"ifconfig %s | grep -q %s", nozzle->name, testipv6_2);
#endif
- err = execute_shell_command(verifycmd, &error_string);
+ err = execute_bin_sh_command(verifycmd, &error_string);
if (error_string) {
printf("Error string: %s\n", error_string);
free(error_string);
#ifdef KNET_BSD
"ifconfig %s | grep -q %s", nozzle->name, testipv6_1);
#endif
- err = execute_shell_command(verifycmd, &error_string);
+ err = execute_bin_sh_command(verifycmd, &error_string);
if (error_string) {
printf("Error string: %s\n", error_string);
free(error_string);
#ifdef KNET_BSD
"ifconfig %s | grep -q %s", nozzle->name, testipv6_2);
#endif
- err = execute_shell_command(verifycmd, &error_string);
+ err = execute_bin_sh_command(verifycmd, &error_string);
if (error_string) {
printf("Error string: %s\n", error_string);
free(error_string);
return err;
}
-static int check_nozzle_execute_shell_command(void)
+static int check_nozzle_execute_bin_sh_command(void)
{
int err = 0;
char command[4096];
memset(command, 0, sizeof(command));
- printf("Testing execute_shell_command\n");
+ printf("Testing execute_bin_sh_command\n");
printf("command true\n");
- err = execute_shell_command("true", &error_string);
+ err = execute_bin_sh_command("true", &error_string);
if (error_string) {
printf("Error string: %s\n", error_string);
free(error_string);
printf("command false\n");
- err = execute_shell_command("false", &error_string);
+ err = execute_bin_sh_command("false", &error_string);
if (error_string) {
printf("Error string: %s\n", error_string);
free(error_string);
printf("command that outputs to stdout (enforcing redirect)\n");
- err = execute_shell_command("grep -h 2>&1", &error_string);
+ err = execute_bin_sh_command("grep -h 2>&1", &error_string);
if (error_string) {
printf("Error string: %s\n", error_string);
free(error_string);
}
printf("command that outputs to stderr\n");
- err = execute_shell_command("grep -h", &error_string);
+ err = execute_bin_sh_command("grep -h", &error_string);
if (error_string) {
printf("Error string: %s\n", error_string);
free(error_string);
}
printf("empty command\n");
- err = execute_shell_command(NULL, &error_string);
+ err = execute_bin_sh_command(NULL, &error_string);
if (error_string) {
printf("Error string: %s\n", error_string);
free(error_string);
}
printf("empty error\n");
- err = execute_shell_command("true", NULL);
+ err = execute_bin_sh_command("true", NULL);
if (!err) {
printf("Check EINVAL filter for no error_string!\n");
err = -1;
#ifdef KNET_BSD
"ifconfig %s | grep -q UP", nozzle->name);
#endif
- err = execute_shell_command(verifycmd, &error_string);
+ err = execute_bin_sh_command(verifycmd, &error_string);
if (error_string) {
printf("Error string: %s\n", error_string);
free(error_string);
#ifdef KNET_BSD
"ifconfig %s | grep -q UP", nozzle->name);
#endif
- err = execute_shell_command(verifycmd, &error_string);
+ err = execute_bin_sh_command(verifycmd, &error_string);
if (error_string) {
printf("Error string: %s\n", error_string);
free(error_string);
#ifdef KNET_BSD
"ifconfig %s | grep -q %s", nozzle->name, testipv4_1);
#endif
- err = execute_shell_command(verifycmd, &error_string);
+ err = execute_bin_sh_command(verifycmd, &error_string);
if (error_string) {
printf("Error string: %s\n", error_string);
free(error_string);
#ifdef KNET_BSD
"ifconfig %s | grep -q %s", nozzle->name, testipv4_1);
#endif
- err = execute_shell_command(verifycmd, &error_string);
+ err = execute_bin_sh_command(verifycmd, &error_string);
if (error_string) {
printf("Error string: %s\n", error_string);
free(error_string);
#ifdef KNET_BSD
"ifconfig %s | grep -q %s", nozzle->name, testipv6_1);
#endif
- err = execute_shell_command(verifycmd, &error_string);
+ err = execute_bin_sh_command(verifycmd, &error_string);
if (error_string) {
printf("Error string: %s\n", error_string);
free(error_string);
#ifdef KNET_BSD
"ifconfig %s | grep -q %s", nozzle->name, testipv6_1);
#endif
- err = execute_shell_command(verifycmd, &error_string);
+ err = execute_bin_sh_command(verifycmd, &error_string);
if (error_string) {
printf("Error string: %s\n", error_string);
free(error_string);
if (check_knet_mac() < 0)
return -1;
- if (check_nozzle_execute_shell_command() < 0)
+ if (check_nozzle_execute_bin_sh_command() < 0)
return -1;
if (check_knet_up_down() < 0)