mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-17 06:23:00 +02:00
forwardctrl: Remove unused and possibly dangerous flush option.
Also remove unused header files.
This commit is contained in:
@@ -5,23 +5,12 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/types.h>
|
||||
#include <fcntl.h>
|
||||
#include "setuid.h"
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
|
||||
if (!(initsetuid()))
|
||||
exit(1);
|
||||
|
||||
if(argc > 1)
|
||||
safe_system("/var/ipfire/forward/bin/rules.pl flush");
|
||||
else
|
||||
safe_system("/var/ipfire/forward/bin/rules.pl");
|
||||
|
||||
safe_system("/var/ipfire/forward/bin/rules.pl");
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user