diff options
author | /C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net </C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net> | 2008-04-13 05:25:24 +0000 |
---|---|---|
committer | /C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net </C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net> | 2008-04-13 05:25:24 +0000 |
commit | d8ab020b6ace8d3ebb176c9d998dd36d77f0f096 (patch) | |
tree | d1f78d7c2e77323c951b6675a5c1bb8a0c71f5c3 /ip6tables-restore.c | |
parent | 6e913f99f542ea1e766e7080d469fd0b09366533 (diff) |
[PATCH 05/13] Combine IP{,6}T_LIB_DIR into XTABLES_LIBDIR
Diffstat (limited to 'ip6tables-restore.c')
-rw-r--r-- | ip6tables-restore.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/ip6tables-restore.c b/ip6tables-restore.c index e9cc0ff..2c3e95d 100644 --- a/ip6tables-restore.c +++ b/ip6tables-restore.c @@ -131,9 +131,14 @@ 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; + lib_dir = getenv("XTABLES_LIBDIR"); + if (lib_dir == NULL) { + lib_dir = getenv("IP6TABLES_LIB_DIR"); + if (lib_dir != NULL) + fprintf(stderr, "IP6TABLES_LIB_DIR is deprecated\n"); + } + if (lib_dir == NULL) + lib_dir = XTABLES_LIBDIR; #ifdef NO_SHARED_LIBS init_extensions(); |