12
#include <sys/types.h>
10
int main(int argc, char** argv) {
16
int main(int argc, char *argv[]) {
19
char add[STRING_SIZE];
14
return run("/var/ipfire/backup/bin/backup.pl", argv + 1);
24
snprintf(command, STRING_SIZE, "/var/ipfire/backup/bin/backup.pl");
26
for (i = 1; i < argc; i++) {
27
if (strstr(argv[i], "&&")){
28
fprintf (stderr, "Bad Argument!\n");
31
else if (strstr(argv[i], "|")){
32
fprintf (stderr, "Bad Argument!\n");
36
fprintf (stderr, "Too Many Arguments!\n");
40
sprintf(add, " %s", argv[i]);
44
return safe_system(command);