diff options
-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) |