Bacula 1.32c status patch
Kern Sibbald <[email protected]> 02 Nov 2003 22:59:22 +0100
| Newsgroups | gmane.comp.sysutils.backup.bacula.announce |
|---|---|
| Message-ID | <1067810360.16751.73.camel__22377.6655075655$1067810429@rufus> |
Hello, Today, Phil Stracchino pointed out that the "status dir" command was not displaying all the scheduled jobs. Fortunately, it concerns only the display. All jobs are correctly scheduled even though they may not appear in the "status dir" output. I've attached a patch which fixes it and have posted it to the patches section of the Bacula downloads on SourceForge. The instructions for applying the patch are at the top of the patch file. This bug is sufficiently annoying that on Monday or Tuesday I'll release an updated version of Bacula that corrects it. The only daemon that needs to be updated is the Director (bacula-dir). Best regards, Kern
1.32c-1-status.patch
(text/plain, 872 B)
In version 1.32c, the "status dir" command would
not always display all scheduled jobs, depending
on the order of the run statements within the
Schedule resource. This problem affects the
status display only. All jobs are actually correctly
scheduled.
Apply the patch with:
cd <bacula-source>/src/dird
patch -p0 <1.32c-1-status.patch
cd <bacula-source>
make
...
Index: ua_output.c
===================================================================
RCS file: /cvsroot/bacula/bacula/src/dird/ua_output.c,v
retrieving revision 1.28
diff -u -b -r1.28 ua_output.c
--- ua_output.c 23 Oct 2003 10:58:10 -0000 1.28
+++ ua_output.c 2 Nov 2003 19:47:25 -0000
@@ -454,7 +454,7 @@
} else {
run = run->next;
}
- if (run) {
+ for ( ; run; run=run->next) {
/*
* Find runs in next 24 hours
*/