Nmap Development mailing list archives
[PATCHed] Let NMAP_UNPRIVILEGED == --unprivileged
From: Kris Katterjohn <katterjohn () gmail com>
Date: Thu, 11 Jan 2007 20:37:26 -0600
The attached patch (/nmap SVN rev 4344) allows the NMAP_UNPRIVILEGED environment variable to be an alternative to --unprivileged like NMAP_PRIVILEGED is for --privileged. Thanks, Kris Katterjohn
Index: NmapOps.cc
===================================================================
--- NmapOps.cc (revision 4343)
+++ NmapOps.cc (revision 4344)
@@ -182,6 +182,8 @@
#else
if (getenv("NMAP_PRIVILEGED"))
isr00t = 1;
+ else if (getenv("NMAP_UNPRIVILEGED"))
+ isr00t = 0;
else
isr00t = !(geteuid());
#endif
_______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://SecLists.Org
Current thread:
- [PATCHed] Let NMAP_UNPRIVILEGED == --unprivileged Kris Katterjohn (Jan 11)
