svn commit: r473593 - in head/net-mgmt/bsnmp-regex: . files
Eugene Grosbein
eugen at FreeBSD.org
Sat Jun 30 01:15:45 UTC 2018
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;
More information about the svn-ports-all
mailing list