From 8a192868ba7dd55a0465f07d8fb42d26dff566d3 Mon Sep 17 00:00:00 2001
From: Phil Sutter <phil@nwl.cc>
Date: Wed, 13 Mar 2019 20:46:17 +0100
Subject: [PATCH] xtables-save: Point at existing man page in help text
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Florian Westphal <fw@strlen.de>
(cherry picked from commit 934479aa1f1576afba97b137a101a60d8534370c)
Signed-off-by: Phil Sutter <psutter@redhat.com>
---
iptables/xtables-save.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/iptables/xtables-save.c b/iptables/xtables-save.c
index 87ebb913f33b7..2cc5a7c7540be 100644
--- a/iptables/xtables-save.c
+++ b/iptables/xtables-save.c
@@ -187,7 +187,8 @@ xtables_save_main(int family, const char *progname, int argc, char *argv[])
exit(0);
default:
fprintf(stderr,
- "Look at manual page `xtables-save.8' for more information.\n");
+ "Look at manual page `%s.8' for more information.\n",
+ prog_name);
exit(1);
}
}
@@ -333,7 +334,8 @@ int xtables_eb_save_main(int argc_, char *argv_[])
exit(0);
default:
fprintf(stderr,
- "Look at manual page `xtables-save.8' for more information.\n");
+ "Look at manual page `%s.8' for more information.\n",
+ prog_name);
exit(1);
}
}
@@ -380,7 +382,8 @@ int xtables_arp_save_main(int argc, char **argv)
exit(0);
default:
fprintf(stderr,
- "Look at manual page `xtables-save.8' for more information.\n");
+ "Look at manual page `%s.8' for more information.\n",
+ prog_name);
exit(1);
}
}
--
2.21.0