From c78b3f264e0a54c75b5ce0853eebc8066d45ab6f Mon Sep 17 00:00:00 2001 From: Jason Downs Date: Sat, 16 Nov 1996 08:49:59 +0000 Subject: Revoke privilages before restarting, from leshka@leshka.chuvashia.su --- usr.sbin/sendmail/src/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/usr.sbin/sendmail/src/main.c b/usr.sbin/sendmail/src/main.c index e50735deeaa..e3475eeed7e 100644 --- a/usr.sbin/sendmail/src/main.c +++ b/usr.sbin/sendmail/src/main.c @@ -1697,6 +1697,8 @@ sighup() syslog(LOG_INFO, "restarting %s on signal", SaveArgv[0]); #endif releasesignal(SIGHUP); + (void) setgid(RealGid); + (void) setuid(RealUid); execv(SaveArgv[0], (ARGV_T) SaveArgv); #ifdef LOG if (LogLevel > 0) -- cgit v1.2.3