diff options
author | Phil Sutter <phil@nwl.cc> | 2021-11-26 16:53:31 +0100 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2021-12-16 14:30:29 +0100 |
commit | 4bff5aef6e63fb4d403d539f4c9d2d90492120b8 (patch) | |
tree | 191956518b3cadac8805d7234889639b916067e0 /iptables/iptables-restore.c | |
parent | 51e5d29357644965bc6a8a4d1f3b2878936147f7 (diff) |
xtables_globals: Embed variant name in .program_version
Both are constant strings, so precompiler may concat them.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'iptables/iptables-restore.c')
-rw-r--r-- | iptables/iptables-restore.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/iptables/iptables-restore.c b/iptables/iptables-restore.c index cc2c2b8b..a3efb067 100644 --- a/iptables/iptables-restore.c +++ b/iptables/iptables-restore.c @@ -117,7 +117,7 @@ ip46tables_restore_main(const struct iptables_restore_cb *cb, verbose = 1; break; case 'V': - printf("%s v%s (legacy)\n", + printf("%s v%s\n", xt_params->program_name, xt_params->program_version); exit(0); |