Fix setting lib_dir in ip*tables-{save,restore}
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 @@
 
 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 @@
 
 	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;