summaryrefslogtreecommitdiffstats
path: root/iptables.c
diff options
context:
space:
mode:
authorMartin Josefsson <gandalf@wlug.westbo.se>2004-12-27 19:49:28 +0000
committerMartin Josefsson <gandalf@wlug.westbo.se>2004-12-27 19:49:28 +0000
commit357d59dcfcbd125e2aa8c07b30cea9635efec2a7 (patch)
tree9bb6930f2d5d2398e4ccc1ef6dd7d7539d8ff7ef /iptables.c
parent70f758db30e46d084397d89bfb670274b0288ac8 (diff)
Fix setting lib_dir in ip*tables-{save,restore}
Diffstat (limited to 'iptables.c')
-rw-r--r--iptables.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/iptables.c b/iptables.c
index 7c003ad1..ca0a66fa 100644
--- a/iptables.c
+++ b/iptables.c
@@ -47,10 +47,6 @@
#define FALSE 0
#endif
-#ifndef IPT_LIB_DIR
-#define IPT_LIB_DIR "/usr/local/lib/iptables"
-#endif
-
#ifndef PROC_SYS_MODPROBE
#define PROC_SYS_MODPROBE "/proc/sys/kernel/modprobe"
#endif
@@ -195,6 +191,7 @@ static int inverse_for_options[NUMBER_OF_OPT] =
const char *program_version;
const char *program_name;
+char *lib_dir;
/* Keeping track of external matches and targets: linked lists. */
struct iptables_match *iptables_matches = NULL;
@@ -210,8 +207,6 @@ struct pprot {
u_int8_t num;
};
-static char *lib_dir;
-
/* Primitive headers... */
/* defined in netinet/in.h */
#if 0
@@ -1715,10 +1710,6 @@ int do_command(int argc, char *argv[], char **table, iptc_handle_t *handle)
memset(&fw, 0, sizeof(fw));
- lib_dir = getenv("IPTABLES_LIB_DIR");
- if (!lib_dir)
- lib_dir = IPT_LIB_DIR;
-
/* re-set optind to 0 in case do_command gets called
* a second time */
optind = 0;