commit 6b944637a9728cd504f7bbf4b9a83f482ec9a1a0
parent 1def58a7dba31b2fa8b14535a7bed0b5e4872c75
Author: Jordan Ritter <jpr5@darkridge.com>
Date: Wed, 31 Dec 2003 02:06:54 +0000
fix for macosx drop_privs (still!). thanks to joseph holsten for giving me access to his box to test
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/ngrep.c b/ngrep.c
@@ -1012,7 +1012,9 @@ void drop_privs(void) {
if (newuid != olduid) {
#if !defined(LINUX)
+#if !defined(MACOSX)
seteuid(newuid);
+#endif
if (setuid(newuid) == -1)
#else
if (setreuid(newuid, newuid) == -1)