]>
git.ipfire.org Git - people/teissler/ipfire-2.x.git/blob - src/misc-progs/backupctrl.c
1 /* This file is part of the IPFire Firewall.
3 * This program is distributed under the terms of the GNU General Public
4 * Licence. See the file COPYING for details.
12 #include <sys/types.h>
16 int main(int argc
, char *argv
[]) {
19 char add
[STRING_SIZE
];
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
);