diff options
author | Jason Downs <downsj@cvs.openbsd.org> | 1996-11-16 08:49:59 +0000 |
---|---|---|
committer | Jason Downs <downsj@cvs.openbsd.org> | 1996-11-16 08:49:59 +0000 |
commit | c78b3f264e0a54c75b5ce0853eebc8066d45ab6f (patch) | |
tree | e7544036ed165c222db4864b9e47840c960fff60 | |
parent | 4760a20aed570c8ba863d5db1166aeec1446d47f (diff) |
Revoke privilages before restarting, from leshka@leshka.chuvashia.su
-rw-r--r-- | usr.sbin/sendmail/src/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) |