svn commit: r407390 - in head/sysutils/bareos-server: . files

Jose Alonso Cardenas Marquez acm at FreeBSD.org
Wed Jan 27 23:07:09 UTC 2016


Author: acm
Date: Wed Jan 27 23:07:08 2016
New Revision: 407390
URL: https://svnweb.freebsd.org/changeset/ports/407390

Log:
  - Fix a problem with NDMP jobs
  - Bump PORTREVISION
  
  Obtained from:	https://bugs.bareos.org/view.php?id=604

Added:
  head/sysutils/bareos-server/files/patch-src-stored-ndmp_tape.c   (contents, props changed)
Modified:
  head/sysutils/bareos-server/Makefile

Modified: head/sysutils/bareos-server/Makefile
==============================================================================
--- head/sysutils/bareos-server/Makefile	Wed Jan 27 21:02:30 2016	(r407389)
+++ head/sysutils/bareos-server/Makefile	Wed Jan 27 23:07:08 2016	(r407390)
@@ -3,7 +3,7 @@
 
 PORTNAME=	bareos
 DISTVERSION=	15.2.2
-PORTREVISION?=	0
+PORTREVISION?=	1
 CATEGORIES?=	sysutils
 PKGNAMEPREFIX?=	#
 PKGNAMESUFFIX?=	-server

Added: head/sysutils/bareos-server/files/patch-src-stored-ndmp_tape.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/bareos-server/files/patch-src-stored-ndmp_tape.c	Wed Jan 27 23:07:08 2016	(r407390)
@@ -0,0 +1,19 @@
+--- src/stored/ndmp_tape.c	2016-01-27 17:57:48.370956000 -0500
++++ src/stored/ndmp_tape.c	2016-01-27 17:59:50.890336000 -0500
+@@ -347,6 +347,16 @@
+    DCR *dcr = jcr->dcr;
+    POOLMEM *rec_data;
+ 
++   if (!dcr) {
++      Dmsg0(100, "No dcr defined, bailing out\n");
++      return retval;
++   }
++
++   if (!dcr->rec) {
++      Dmsg0(100, "No dcr->rec defined, bailing out\n");
++      return retval;
++   }
++
+    /*
+     * Keep track of the original data buffer and restore it on exit from this function.
+     */


More information about the svn-ports-all mailing list