From 5ac6c43c938b307160fb80b460697f10146c4a7e Mon Sep 17 00:00:00 2001 From: Jacek Konieczny Date: Tue, 21 Sep 2010 10:35:20 +0000 Subject: [PATCH] - patch to fix a crash that may happen when using the DVD storage Changed files: bacula-dvd_rewind.patch -> 1.1 bacula.spec -> 1.150 --- bacula-dvd_rewind.patch | 11 +++++++++++ bacula.spec | 4 +++- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 bacula-dvd_rewind.patch diff --git a/bacula-dvd_rewind.patch b/bacula-dvd_rewind.patch new file mode 100644 index 0000000..a1d6e23 --- /dev/null +++ b/bacula-dvd_rewind.patch @@ -0,0 +1,11 @@ +--- bacula-5.0.3/src/stored/dev.c.orig 2010-08-05 16:29:51.000000000 +0200 ++++ bacula-5.0.3/src/stored/dev.c 2010-09-21 09:53:25.000000000 +0200 +@@ -832,7 +832,7 @@ + } + break; + } +- } else if (is_file() || is_dvd()) { ++ } else if (dcr && (is_file() || is_dvd())) { + if (lseek(dcr, (boffset_t)0, SEEK_SET) < 0) { + berrno be; + dev_errno = errno; diff --git a/bacula.spec b/bacula.spec index 7d081ab..e946576 100644 --- a/bacula.spec +++ b/bacula.spec @@ -28,7 +28,7 @@ Summary: Bacula - The Network Backup Solution Summary(pl.UTF-8): Bacula - rozwiązanie do wykonywania kopii zapasowych po sieci Name: bacula Version: 5.0.3 -Release: 2 +Release: 3 License: extended GPL v2 Group: Networking/Utilities Source0: http://downloads.sourceforge.net/bacula/%{name}-%{version}.tar.gz @@ -53,6 +53,7 @@ Patch5: %{name}-desktop.patch Patch7: %{name}-dbi_fixes.patch Patch8: %{name}-dbi_dbcheck.patch Patch9: %{name}-openssl1.patch +Patch10: %{name}-dvd_rewind.patch URL: http://www.bacula.org/ BuildRequires: acl-devel BuildRequires: autoconf @@ -467,6 +468,7 @@ Nagios plugin to check bacula. %patch7 -p1 %patch8 -p1 %patch9 -p1 +%patch10 -p1 tar -xf %{SOURCE2} && ln -s bacula-rescue-* rescue -- 2.44.0