summaryrefslogtreecommitdiffstats
path: root/iptables-restore.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-restore.c
parent70f758db30e46d084397d89bfb670274b0288ac8 (diff)
Fix setting lib_dir in ip*tables-{save,restore}
Diffstat (limited to 'iptables-restore.c')
-rw-r--r--iptables-restore.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/iptables-restore.c b/iptables-restore.c
index 284f25c6..42aa2a27 100644
--- a/iptables-restore.c
+++ b/iptables-restore.c
@@ -4,7 +4,7 @@
*
* This code is distributed under the terms of GNU GPL v2
*
- * $Id: iptables-restore.c,v 1.35 2004/06/25 11:18:57 kadlec Exp $
+ * $Id$
*/
#include <getopt.h>
@@ -119,6 +119,10 @@ main(int argc, char *argv[])
program_version = IPTABLES_VERSION;
line = 0;
+ lib_dir = getenv("IPTABLES_LIB_DIR");
+ if (!lib_dir)
+ lib_dir = IPT_LIB_DIR;
+
#ifdef NO_SHARED_LIBS
init_extensions();
#endif