From owner-svn-ports-head@freebsd.org Sat Jun 30 01:15:45 2018 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 76975FDD845; Sat, 30 Jun 2018 01:15:45 +0000 (UTC) (envelope-from eugen@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id F29CB8467D; Sat, 30 Jun 2018 01:15:44 +0000 (UTC) (envelope-from eugen@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id D3AD3A5B; Sat, 30 Jun 2018 01:15:44 +0000 (UTC) (envelope-from eugen@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w5U1FiRU050237; Sat, 30 Jun 2018 01:15:44 GMT (envelope-from eugen@FreeBSD.org) Received: (from eugen@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w5U1Fil2050235; Sat, 30 Jun 2018 01:15:44 GMT (envelope-from eugen@FreeBSD.org) Message-Id: <201806300115.w5U1Fil2050235@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: eugen set sender to eugen@FreeBSD.org using -f From: Eugene Grosbein Date: Sat, 30 Jun 2018 01:15:44 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r473593 - in head/net-mgmt/bsnmp-regex: . files X-SVN-Group: ports-head X-SVN-Commit-Author: eugen X-SVN-Commit-Paths: in head/net-mgmt/bsnmp-regex: . files X-SVN-Commit-Revision: 473593 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Jun 2018 01:15:45 -0000 Author: eugen Date: Sat Jun 30 01:15:44 2018 New Revision: 473593 URL: https://svnweb.freebsd.org/changeset/ports/473593 Log: net-mgmt/bsnmp-regex: permit expires = 0 Fix bsnmp-regex-0.6 allowing to change "expires" option from the default zero value to non-zero one not allowing to change it back to zero. PR: 228765 Approved by: koobs (maintainer timeout, 3 weeks) Added: head/net-mgmt/bsnmp-regex/files/ head/net-mgmt/bsnmp-regex/files/patch-bsnmp-regex.c (contents, props changed) Modified: head/net-mgmt/bsnmp-regex/Makefile Modified: head/net-mgmt/bsnmp-regex/Makefile ============================================================================== --- head/net-mgmt/bsnmp-regex/Makefile Sat Jun 30 00:49:19 2018 (r473592) +++ head/net-mgmt/bsnmp-regex/Makefile Sat Jun 30 01:15:44 2018 (r473593) @@ -3,7 +3,7 @@ PORTNAME= bsnmp-regex PORTVERSION= 0.6 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= net-mgmt MASTER_SITES= http://thewalter.net/stef/software/bsnmp-regex/ Added: head/net-mgmt/bsnmp-regex/files/patch-bsnmp-regex.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-mgmt/bsnmp-regex/files/patch-bsnmp-regex.c Sat Jun 30 01:15:44 2018 (r473593) @@ -0,0 +1,11 @@ +--- module/bsnmp-regex.c.orig 2011-10-21 16:05:37.000000000 +0700 ++++ module/bsnmp-regex.c 2018-06-05 21:16:44.471250000 +0700 +@@ -788,7 +788,7 @@ config_var (char *name, char *value, int + if (strcmp (name, "expire") == 0 || strcmp (name, "expires") == 0) { + + i = strtol (value, &t2, 10); +- if (i <= 0 || *t2) ++ if (i < 0 || *t2) + emsg ("invalid value for '%s' variable. ignoring: %s", name, value); + else + option_expires = i * 100;