summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Downs <downsj@cvs.openbsd.org>1996-11-16 08:49:59 +0000
committerJason Downs <downsj@cvs.openbsd.org>1996-11-16 08:49:59 +0000
commitc78b3f264e0a54c75b5ce0853eebc8066d45ab6f (patch)
treee7544036ed165c222db4864b9e47840c960fff60
parent4760a20aed570c8ba863d5db1166aeec1446d47f (diff)
Revoke privilages before restarting, from leshka@leshka.chuvashia.su
-rw-r--r--usr.sbin/sendmail/src/main.c2
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)