summaryrefslogtreecommitdiffstats
path: root/ip6tables-restore.c
diff options
context:
space:
mode:
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
commit5274b478e6898d79dd021e5d9a5289cb497d4773 (patch)
tree9bb6930f2d5d2398e4ccc1ef6dd7d7539d8ff7ef /ip6tables-restore.c
parentbb05984cd30d618b41e8774a28e5d88f812977b8 (diff)
Fix setting lib_dir in ip*tables-{save,restore}
Diffstat (limited to 'ip6tables-restore.c')
-rw-r--r--ip6tables-restore.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/ip6tables-restore.c b/ip6tables-restore.c
index 76dddcb..6909c8d 100644
--- a/ip6tables-restore.c
+++ b/ip6tables-restore.c
@@ -7,7 +7,7 @@
* Rusty Russell <rusty@linuxcare.com.au>
* This code is distributed under the terms of GNU GPL v2
*
- * $Id: ip6tables-restore.c,v 1.22 2004/05/26 16:04:48 gandalf Exp $
+ * $Id$
*/
#include <getopt.h>
@@ -116,6 +116,10 @@ int main(int argc, char *argv[])
program_version = IPTABLES_VERSION;
line = 0;
+ lib_dir = getenv("IP6TABLES_LIB_DIR");
+ if (!lib_dir)
+ lib_dir = IP6T_LIB_DIR;
+
#ifdef NO_SHARED_LIBS
init_extensions();
#endif