for (i = 0; up_commands[i] && *up_commands[i]; i++)
{
f->log(3, 0, 0, "Running %s\n", up_commands[i]);
- system(up_commands[i]);
+ int status = system(up_commands[i]);
}
return PLUGIN_RET_OK;
{
char cmd[2048];
sessionidt sess;
+ int status;
if (!s) return 0;
if (!s->opened) return 0;
f->fmtaddr(htonl(s->ip), 0));
f->log(3, sess, s->tunnel, "%s\n", cmd);
- system(cmd);
+ status = system(cmd);
s->walled_garden = 1;
}
else
f->log(3, sess, s->tunnel, "%s\n", cmd);
while (--count)
{
- int status = system(cmd);
+ status = system(cmd);
if (WEXITSTATUS(status) != 0) break;
}
for (i = 0; down_commands[i] && *down_commands[i]; i++)
{
f->log(3, 0, 0, "Running %s\n", down_commands[i]);
- system(down_commands[i]);
+ int status = system(down_commands[i]);
}
}
for (i = 0; down_commands[i] && *down_commands[i]; i++)
{
f->log(3, 0, 0, "Running %s\n", down_commands[i]);
- system(down_commands[i]);
+ int status = system(down_commands[i]);
}
}