[Bug 269791] net-mgmt/net-snmp: fix net-snmp-config --create-snmpv3-user for use on jail hosts

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 23 Feb 2023 23:01:02 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=269791

            Bug ID: 269791
           Summary: net-mgmt/net-snmp: fix net-snmp-config
                    --create-snmpv3-user for use on jail hosts
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: zi@FreeBSD.org
          Reporter: dvl@FreeBSD.org
          Assignee: zi@FreeBSD.org
             Flags: maintainer-feedback?(zi@FreeBSD.org)

Created attachment 240356
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=240356&action=edit
Use @PSCMD@ -J 0 not @PSCMD@

re https://github.com/net-snmp/net-snmp/issues/280 submitted about 10 months
ago.

This patch allows sudo net-snmp-config --create-snmpv3-user to succeed if run
on a jail host and snmpd is also running in one of the jails.

The code checks to see if snmpd is running, but fails to check only the host,
not all processes.

Just now, I've starting patching my own net-mgmt/net-snmp

This works here.

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