]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
misc-progs: Remove getiptstate.
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 15 Aug 2012 20:49:00 +0000 (16:49 -0400)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 15 Aug 2012 20:49:00 +0000 (16:49 -0400)
config/rootfiles/common/misc-progs
src/misc-progs/Makefile
src/misc-progs/getiptstate.c [deleted file]

index 3c0b398d3aaf3270193dae2d9299103c12f14bb1..2d6b2e2cb4b863b7799ba978d068c94378f90da3 100644 (file)
@@ -7,7 +7,6 @@ usr/local/bin/extrahdctrl
 usr/local/bin/fireinfoctrl
 usr/local/bin/getconntracktable
 usr/local/bin/getipstat
-usr/local/bin/getiptstate
 #usr/local/bin/iowrap
 usr/local/bin/ipfirereboot
 usr/local/bin/ipsecctrl
index 300e9ecbb244caabd7fb447a82259b92d764d6e8..33d1d667e2fa72f3ef98ebe9dddb554b942de0e4 100644 (file)
@@ -29,7 +29,7 @@ SUID_PROGS = setdmzholes setportfw setxtaccess \
        ipsecctrl timectrl dhcpctrl snortctrl \
        applejuicectrl rebuildhosts backupctrl \
        logwatch openvpnctrl outgoingfwctrl \
-       wirelessctrl getipstat getiptstate qosctrl launch-ether-wake \
+       wirelessctrl getipstat qosctrl launch-ether-wake \
        redctrl syslogdctrl extrahdctrl sambactrl upnpctrl tripwirectrl \
        smartctrl clamavctrl addonctrl pakfire mpfirectrl wlanapctrl \
        setaliases urlfilterctrl updxlratorctrl fireinfoctrl rebuildroutes \
diff --git a/src/misc-progs/getiptstate.c b/src/misc-progs/getiptstate.c
deleted file mode 100644 (file)
index 338b531..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-/* IPFire helper program - IPStat
- *
- * Get the list from IPTABLES -L
- * 
- */
-         
-#include <stdio.h>
-#include <string.h>
-#include <unistd.h>
-#include <stdlib.h>
-#include <sys/types.h>
-#include <fcntl.h>
-#include "setuid.h"
-
-
-int main(void)
-{
-       if (!(initsetuid()))
-               exit(1);
-       
-       safe_system("/usr/sbin/iptstate -1rbt");
-       return 0;
-}
-