commit 8f0afd7fe5fd66d7ef04b23ab74f4f3b1a48b84a Author: Christian Ullrich Date: Fri Feb 19 21:21:58 2021 +0100 Fix uid change in snmptt. The ruid must be changed to the daemon uid before the euid, because changing the euid closes the door on ruid changes. diff --git a/net-mgmt/snmptt/files/patch-snmptt b/net-mgmt/snmptt/files/patch-snmptt new file mode 100644 index 000000000000..e0fc65762ce0 --- /dev/null +++ b/net-mgmt/snmptt/files/patch-snmptt @@ -0,0 +1,13 @@ +--- 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) {