From 8783071f70e0d9351cde8bfe5f9360e831388415 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Wed, 7 Jan 2009 14:43:47 +0100 Subject: env: augment deprecation notice Tell the user what to use instead of IP*TABLES_LIBDIR. Signed-off-by: Jan Engelhardt Signed-off-by: Pablo Neira Ayuso --- ip6tables-restore.c | 3 ++- ip6tables-save.c | 3 ++- ip6tables-standalone.c | 3 ++- iptables-restore.c | 3 ++- iptables-save.c | 3 ++- iptables-standalone.c | 3 ++- 6 files changed, 12 insertions(+), 6 deletions(-) diff --git a/ip6tables-restore.c b/ip6tables-restore.c index 01bccf77..a84c2e3e 100644 --- a/ip6tables-restore.c +++ b/ip6tables-restore.c @@ -133,7 +133,8 @@ int main(int argc, char *argv[]) if (lib_dir == NULL) { lib_dir = getenv("IP6TABLES_LIB_DIR"); if (lib_dir != NULL) - fprintf(stderr, "IP6TABLES_LIB_DIR is deprecated\n"); + fprintf(stderr, "IP6TABLES_LIB_DIR is deprecated, " + "use XTABLES_LIBDIR.\n"); } if (lib_dir == NULL) lib_dir = XTABLES_LIBDIR; diff --git a/ip6tables-save.c b/ip6tables-save.c index d5f8e54b..11ef8c48 100644 --- a/ip6tables-save.c +++ b/ip6tables-save.c @@ -143,7 +143,8 @@ int main(int argc, char *argv[]) if (lib_dir == NULL) { lib_dir = getenv("IP6TABLES_LIB_DIR"); if (lib_dir != NULL) - fprintf(stderr, "IP6TABLES_LIB_DIR is deprecated\n"); + fprintf(stderr, "IP6TABLES_LIB_DIR is deprecated, " + "use XTABLES_LIBDIR.\n"); } if (lib_dir == NULL) lib_dir = XTABLES_LIBDIR; diff --git a/ip6tables-standalone.c b/ip6tables-standalone.c index 11c7cb0a..f4b1f18f 100644 --- a/ip6tables-standalone.c +++ b/ip6tables-standalone.c @@ -56,7 +56,8 @@ main(int argc, char *argv[]) if (lib_dir == NULL) { lib_dir = getenv("IP6TABLES_LIB_DIR"); if (lib_dir != NULL) - fprintf(stderr, "IP6TABLES_LIB_DIR is deprecated\n"); + fprintf(stderr, "IP6TABLES_LIB_DIR is deprecated, " + "use XTABLES_LIBDIR.\n"); } if (lib_dir == NULL) lib_dir = XTABLES_LIBDIR; diff --git a/iptables-restore.c b/iptables-restore.c index 4ea9306b..7cc6d6dc 100644 --- a/iptables-restore.c +++ b/iptables-restore.c @@ -135,7 +135,8 @@ main(int argc, char *argv[]) if (lib_dir == NULL) { lib_dir = getenv("IPTABLES_LIB_DIR"); if (lib_dir != NULL) - fprintf(stderr, "IPTABLES_LIB_DIR is deprecated\n"); + fprintf(stderr, "IPTABLES_LIB_DIR is deprecated, " + "use XTABLES_LIBDIR.\n"); } if (lib_dir == NULL) lib_dir = XTABLES_LIBDIR; diff --git a/iptables-save.c b/iptables-save.c index 6252c0b0..7118d1f2 100644 --- a/iptables-save.c +++ b/iptables-save.c @@ -143,7 +143,8 @@ main(int argc, char *argv[]) if (lib_dir == NULL) { lib_dir = getenv("IPTABLES_LIB_DIR"); if (lib_dir != NULL) - fprintf(stderr, "IPTABLES_LIB_DIR is deprecated\n"); + fprintf(stderr, "IPTABLES_LIB_DIR is deprecated, " + "use XTABLES_LIBDIR.\n"); } if (lib_dir == NULL) lib_dir = XTABLES_LIBDIR; diff --git a/iptables-standalone.c b/iptables-standalone.c index dbfae5be..3f2432fe 100644 --- a/iptables-standalone.c +++ b/iptables-standalone.c @@ -57,7 +57,8 @@ main(int argc, char *argv[]) if (lib_dir == NULL) { lib_dir = getenv("IPTABLES_LIB_DIR"); if (lib_dir != NULL) - fprintf(stderr, "IPTABLES_LIB_DIR is deprecated\n"); + fprintf(stderr, "IPTABLES_LIB_DIR is deprecated, " + "use XTABLES_LIBDIR.\n"); } if (lib_dir == NULL) lib_dir = XTABLES_LIBDIR; -- cgit v1.2.3