From dcd0ed947ceaf741a7f28dbcdf7f63df30d856a3 Mon Sep 17 00:00:00 2001 From: Gabriel Ferreira Date: Sun, 13 Mar 2022 22:34:13 -0300 Subject: [PATCH] build: fix --enable-sudo behavior when set during configuration --- ns3 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ns3 b/ns3 index 78fbaa814..6d7cfef17 100755 --- a/ns3 +++ b/ns3 @@ -1282,7 +1282,7 @@ def main(): # Setup program as sudo if enable_sudo or (args.run and args.enable_sudo): - sudo_step(args, target_to_run, set(ns3_programs.values()[0]) if enable_sudo else set()) + sudo_step(args, target_to_run, set(map(lambda x: x[0], ns3_programs.values())) if enable_sudo else set()) # Finally, we try to run it if args.shell or run_only or build_and_run: