mirror of
https://git.freebsd.org/ports.git
synced 2025-05-20 02:53:10 -04:00
The code attempts to change from the executing user to a configured service user, but it does this by first changing effective, then real uid. It then briefly looks around curiously before falling flat on its face because the real uid change failed, the process not having root anymore at that point. PR: 253702 Submitted by: Christian Ullrich <chris AT chrullrich DOT net> Approved by: nistor AT snickers DOT org
13 lines
321 B
Text
13 lines
321 B
Text
--- snmptt.orig 2021-02-19 20:24:30 UTC
|
|
+++ snmptt
|
|
@@ -956,8 +956,8 @@ if ($daemon == 1)
|
|
$) = $daemon_gid;
|
|
$( = $);
|
|
|
|
- $> = $daemon_uid;
|
|
- $< = $>;
|
|
+ $< = $daemon_uid;
|
|
+ $> = $<;
|
|
|
|
if ($< != $daemon_uid || $( != $daemon_gid) {
|
|
if ($syslog_system_enable == 1) {
|