diff options
author | /C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=gandalf/emailAddress=gandalf@netfilter.org </C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=gandalf/emailAddress=gandalf@netfilter.org> | 2004-12-27 19:49:28 +0000 |
---|---|---|
committer | /C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=gandalf/emailAddress=gandalf@netfilter.org </C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=gandalf/emailAddress=gandalf@netfilter.org> | 2004-12-27 19:49:28 +0000 |
commit | 5274b478e6898d79dd021e5d9a5289cb497d4773 (patch) | |
tree | 9bb6930f2d5d2398e4ccc1ef6dd7d7539d8ff7ef /ip6tables.c | |
parent | bb05984cd30d618b41e8774a28e5d88f812977b8 (diff) |
Fix setting lib_dir in ip*tables-{save,restore}
Diffstat (limited to 'ip6tables.c')
-rw-r--r-- | ip6tables.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/ip6tables.c b/ip6tables.c index aac9531..aa1e148 100644 --- a/ip6tables.c +++ b/ip6tables.c @@ -50,10 +50,6 @@ #define FALSE 0 #endif -#ifndef IP6T_LIB_DIR -#define IP6T_LIB_DIR "/usr/local/lib/iptables" -#endif - #ifndef PROC_SYS_MODPROBE #define PROC_SYS_MODPROBE "/proc/sys/kernel/modprobe" #endif @@ -195,8 +191,7 @@ static int inverse_for_options[NUMBER_OF_OPT] = const char *program_version; const char *program_name; - -static char *lib_dir; +char *lib_dir; /* Keeping track of external matches and targets: linked lists. */ struct ip6tables_match *ip6tables_matches = NULL; @@ -1718,10 +1713,6 @@ int do_command6(int argc, char *argv[], char **table, ip6tc_handle_t *handle) memset(&fw, 0, sizeof(fw)); - lib_dir = getenv("IP6TABLES_LIB_DIR"); - if (!lib_dir) - lib_dir = IP6T_LIB_DIR; - /* re-set optind to 0 in case do_command gets called * a second time */ optind = 0; |