site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com i have an if statement that looks like: if (geteuid()==0) { // routing table adjustments that only root can make } after each compile, i use chown/chmod to set the binary's privs like so: -rwsr-xr-x root wheel thanks. - chase _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... when i run the code normally, everything works just fine, whether launching as root or as a vanilla user. but, when i'm trying to step through the code with the xcode/gdb debugger, geteuid() is returning the uid of my vanilla user (the one i'm running xcode as). what can i do to fix this so that i can properly debug without having to log in as root to run xcode? This email sent to site_archiver@lists.apple.com