On Thu, 18 Mar 2021, Federico Pellegrin wrote:
When inet_diag module is present an additional command line (-n,
--show_sockets) is added. But a bug (wrong name of list to append)
will make the program fail instead. Fixed "int" to "long" to solve
this.
Signed-off-by: Federico Pellegrin <fede(a)evolware.org>
---
tuna-cmd.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tuna-cmd.py b/tuna-cmd.py
index 7b9f6eb..4181004 100755
--- a/tuna-cmd.py
+++ b/tuna-cmd.py
@@ -504,7 +504,7 @@ def main():
"config_file_list=", "run="]
if have_inet_diag:
short += "n"
- int.append("show_sockets")
+ long.append("show_sockets")
opts, args = getopt.getopt(sys.argv[1:], short, long)
except getopt.GetoptError as err:
usage()
--
2.26.3
Signed-off-by: John Kacur <jkacur(a)redhat.com>