commit | 357d59dcfcbd125e2aa8c07b30cea9635efec2a7 | [log] [tgz] |
---|---|---|
author | Martin Josefsson <gandalf@wlug.westbo.se> | Mon Dec 27 19:49:28 2004 +0000 |
committer | Martin Josefsson <gandalf@wlug.westbo.se> | Mon Dec 27 19:49:28 2004 +0000 |
tree | 9bb6930f2d5d2398e4ccc1ef6dd7d7539d8ff7ef | |
parent | 70f758db30e46d084397d89bfb670274b0288ac8 [diff] [blame] |
Fix setting lib_dir in ip*tables-{save,restore}
diff --git a/iptables-standalone.c b/iptables-standalone.c index 244db5f..257b677 100644 --- a/iptables-standalone.c +++ b/iptables-standalone.c
@@ -52,6 +52,10 @@ program_name = "iptables"; program_version = IPTABLES_VERSION; + lib_dir = getenv("IPTABLES_LIB_DIR"); + if (!lib_dir) + lib_dir = IPT_LIB_DIR; + #ifdef NO_SHARED_LIBS init_extensions(); #endif