[Bug 253702] net-mgmt/snmptt: Fix upstream bug

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Feb 19 20:33:29 UTC 2021


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=253702

            Bug ID: 253702
           Summary: net-mgmt/snmptt: Fix upstream bug
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs at FreeBSD.org
          Reporter: chris at chrullrich.net
                CC: nistor at snickers.org
                CC: nistor at snickers.org
             Flags: maintainer-feedback?(nistor at snickers.org)

Created attachment 222650
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=222650&action=edit
Patch

This is a fix for an upstream bug. Given the level of activity on the snmptt
Sourceforge project, I expect some delay until upstream fixes the bug.

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.

The attached patch reverses the order of the operations.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list