Date: Sat, 30 Jun 2018 01:15:44 +0000 (UTC) From: Eugene Grosbein <eugen@FreeBSD.org> 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 Message-ID: <201806300115.w5U1Fil2050235@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201806300115.w5U1Fil2050235>