freebsd-ports/sysutils/bacula2-server/files/patch-src-stored-acquire.c
Wesley Shields 6ab390b54b - Reintroduce bacula2.x as sysutils/bacula2-server and sysutils/bacula2-client
- The 3.x line of bacula does not work with 2.x so these ports exist for
  those who can not upgrade to 3.x. Besides security/infrastructure fixes
  this port is not likely to see any functional upgrades.
- The bacula-*-devel ports will be updated to a 3.1 release when it
  is available.

PR:		ports/135580
Submitted by:	Vaclav Haisman <v.haisman@sh.cvut.cz>
Approved by:	dvl (old maintainer)
Thanks to:	miwi for build-testing
2009-06-15 18:17:17 +00:00

23 lines
872 B
C

Index: src/stored/acquire.c
===================================================================
--- src/stored/acquire.c (revision 8426)
+++ src/stored/acquire.c (working copy)
@@ -1,7 +1,7 @@
/*
Bacula® - The Network Backup Solution
- Copyright (C) 2002-2008 Free Software Foundation Europe e.V.
+ Copyright (C) 2002-2009 Free Software Foundation Europe e.V.
The main author of Bacula is Kern Sibbald, with contributions from
many others, a complete list can be found in the file AUTHORS.
@@ -647,8 +647,8 @@
/* Detach this dcr only if attached */
if (dcr->attached_to_dev && dev) {
+ dev->dlock();
dcr->unreserve_device();
- dev->dlock();
dcr->dev->attached_dcrs->remove(dcr); /* detach dcr from device */
dcr->attached_to_dev = false;
// remove_dcr_from_dcrs(dcr); /* remove dcr from jcr list */