From 357d59dcfcbd125e2aa8c07b30cea9635efec2a7 Mon Sep 17 00:00:00 2001 From: Martin Josefsson Date: Mon, 27 Dec 2004 19:49:28 +0000 Subject: Fix setting lib_dir in ip*tables-{save,restore} --- ip6tables-restore.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'ip6tables-restore.c') diff --git a/ip6tables-restore.c b/ip6tables-restore.c index 76dddcba..6909c8d7 100644 --- a/ip6tables-restore.c +++ b/ip6tables-restore.c @@ -7,7 +7,7 @@ * Rusty Russell * 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 @@ -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 -- cgit v1.2.3