mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-24 04:33:24 +00:00
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)
This commit is contained in:
parent
f074df86ce
commit
b3d94a9eaa
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=473593
@ -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/
|
||||
|
||||
|
11
net-mgmt/bsnmp-regex/files/patch-bsnmp-regex.c
Normal file
11
net-mgmt/bsnmp-regex/files/patch-bsnmp-regex.c
Normal file
@ -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;
|
Loading…
Reference in New Issue
Block a user