--- a/wscript Thu Oct 30 10:30:33 2008 -0700
+++ b/wscript Thu Oct 30 13:00:16 2008 -0700
@@ -167,9 +167,9 @@
help=('For regression testing, only run/generate the indicated regression tests, '
'specified as a comma separated list of test names'),
dest='regression_tests', type="string")
- opt.add_option('--disable-sudo',
- help=('Do not attempt to use sudo to setup suid bits on ns3 executables.'),
- dest='disable_sudo', action='store_true',
+ opt.add_option('--enable-sudo',
+ help=('Use sudo to setup suid bits on ns3 executables.'),
+ dest='enable_sudo', action='store_true',
default=False)
# options provided in a script in a subdirectory named "src"
@@ -327,7 +327,7 @@
program.module_deps = list()
program.name = name
program.target = name
- if bld.env ()['SUDO'] and not Params.g_options.disable_sudo:
+ if bld.env ()['SUDO'] and Params.g_options.enable_sudo:
SuidBuildTask (bld, program)
return program