summaryrefslogtreecommitdiff
path: root/net/rtg/files/patch-etc-rtgtargmkr.pl.in
diff options
context:
space:
mode:
authorMatthias Fechner <mfechner@FreeBSD.org>2018-11-07 19:40:59 +0000
committerMatthias Fechner <mfechner@FreeBSD.org>2018-11-07 19:40:59 +0000
commitd7588dfb2c0258efd62bbeec5edb5af77f381713 (patch)
tree3b705599c0d7b4175a5d486db48aed673ea86368 /net/rtg/files/patch-etc-rtgtargmkr.pl.in
parentdevel/clixon: Update to 3.8.0 (diff)
* Fix runtime PHP errors that stop the code working if short_opentag is disabled (default!)
* Remove most PHP warnings/notices that go to error_log * Convert patches to new format where needed * Fix HTML output to be valid * Fix quoting of SQL objects * Fix escaping of user-provided SQL data (potential sql injection) * Widen fields in 95.php and 95.pl for interface and router names * Fix warnings in perl modules in newer perl versions * Fix createdb script to use CREATE USER/GRANT not manipulate user db directly * Add "Update_desc" config entry to auto-update port descriptions from snmp * Update default SNMP version to 2 * Although this doesn't reference any CVE's, it does contain fixes for potential security issues PR: 227376 Submitted by: freebsd-ports@dan.me.uk (maintainer) Reported by: freebsd-ports@dan.me.uk (maintainer) Reviewed by: mfechner Approved by: mentors (timeout), portmgr (timeout) MFC after: 2 days Differential Revision: https://reviews.freebsd.org/D17637
Notes
Notes: svn path=/head/; revision=484406
Diffstat (limited to 'net/rtg/files/patch-etc-rtgtargmkr.pl.in')
-rw-r--r--net/rtg/files/patch-etc-rtgtargmkr.pl.in29
1 files changed, 0 insertions, 29 deletions
diff --git a/net/rtg/files/patch-etc-rtgtargmkr.pl.in b/net/rtg/files/patch-etc-rtgtargmkr.pl.in
deleted file mode 100644
index 4664faecbacf..000000000000
--- a/net/rtg/files/patch-etc-rtgtargmkr.pl.in
+++ /dev/null
@@ -1,29 +0,0 @@
---- etc/rtgtargmkr.pl.in.orig 2016-11-04 16:36:53 UTC
-+++ etc/rtgtargmkr.pl.in
-@@ -126,7 +126,7 @@ sub find_router_id {
- &sql_insert($sql);
- $rid = &find_router_id($router);
- foreach $mib ( keys %mibs_of_interest ) {
-- $sql = "CREATE TABLE $mib"."_$rid (id INT NOT NULL, dtime DATETIME NOT NULL, counter BIGINT NOT NULL, KEY $mib"."_$rid". "_idx (dtime))";
-+ $sql = "CREATE TABLE $mib"."_$rid (id INT NOT NULL, dtime DATETIME NOT NULL, counter BIGINT NOT NULL, KEY $mib"."_$rid". "_idx (dtime), KEY id_dtime_idx (id,dtime))";
- &sql_insert($sql);
- }
- }
-@@ -289,7 +289,7 @@ sub main {
- $year + 1900, $hour, $min;
- print CFG "# Host\tOID\tBits\tCommunity\tTable\tID\tDescription\n";
-
-- foreach $router (@routers) {
-+ POKE: foreach $router (@routers) {
- $bits = $counterBits{$router};
- # Sanity check bits
- $bits = $defbits if ( ( $bits != 32 ) && ( $bits != 64 ) );
-@@ -304,7 +304,7 @@ sub main {
- $system = join ( ' ', @result );
- print "System: $system\n" if $DEBUG;
- $session = SNMP_Session->open( $router, $communities{$router}, 161 )
-- || die "Error opening SNMP session to $router";
-+ || ( print "Error opening SNMP session to $router" and next POKE );
- if ( $system =~ /.*Cisco.*WS-.*/ ) {
- $system = "Catalyst";
- $session->map_table( $catalyst, \&process );