From 5274b478e6898d79dd021e5d9a5289cb497d4773 Mon Sep 17 00:00:00 2001 From: "/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=gandalf/emailAddress=gandalf@netfilter.org" Date: Mon, 27 Dec 2004 19:49:28 +0000 Subject: Fix setting lib_dir in ip*tables-{save,restore} --- iptables-restore.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'iptables-restore.c') diff --git a/iptables-restore.c b/iptables-restore.c index 284f25c..42aa2a2 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 @@ -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 -- cgit v1.2.3