dnl -------------------------------------------------------------------------
dnl If the user has not set --htmldir, we default to /usr/share/doc/bacula/html
dnl -------------------------------------------------------------------------
-dnl z
if test x$htmldir = x${docdir} ; then
htmldir=`eval echo ${docdir}bacula/html`
fi
dnl -------------------------------------------------------------------------
dnl If the user has not set --docdir, we default to /usr/share/doc/
dnl -------------------------------------------------------------------------
-dnl z
if test x$docdir = x'/usr/share/doc/' ; then
docdir=`eval echo ${docdir}bacula`
fi
- This patch can be applied to version 3.0.0. It fixes bug #1268
- Full Max Run TIme cancels jobs (when Max Run Time = 0).
+ This patch can be applied to version 3.0.1 and fixes a
+ syntax error that causes builds on older Solarises to fail.
- Apply it to version 3.0.0 with:
+ Apply it to version 3.0.1 with:
cd <bacula-source>
- patch -p0 <3.0.0-read-vol-list.patch
+ patch -p0 <3.0.1-solaris-acl.patch
./configure <your-options>
make
...
-Index: src/dird/job.c
-===================================================================
---- src/dird/job.c (revision 8699)
-+++ src/dird/job.c (working copy)
-@@ -578,6 +578,7 @@
- {
- bool cancel = false;
- JOB *job = jcr->job;
-+ utime_t run_time;
-
- if (job_canceled(jcr) || jcr->JobStatus == JS_Created) {
- return false;
-@@ -586,20 +587,25 @@
- job->IncMaxRunTime == 0 && job->DiffMaxRunTime == 0) {
- return false;
- }
-- Dmsg6(200, "check_maxruntime %u - %u >= %u|%u|%u|%u\n\n",
-- watchdog_time, jcr->start_time, job->MaxRunTime, job->FullMaxRunTime,
-+ run_time = watchdog_time - jcr->start_time;
-+ Dmsg7(200, "check_maxruntime %llu-%u=%llu >= %llu|%llu|%llu|%llu\n",
-+ watchdog_time, jcr->start_time, run_time, job->MaxRunTime, job->FullMaxRunTime,
- job->IncMaxRunTime, job->DiffMaxRunTime);
-
- if (jcr->get_JobLevel() == L_FULL && job->FullMaxRunTime != 0 &&
-- (watchdog_time - jcr->start_time) >= job->FullMaxRunTime) {
-+ run_time >= job->FullMaxRunTime) {
-+ Dmsg0(200, "check_maxwaittime: FullMaxcancel\n");
- cancel = true;
- } else if (jcr->get_JobLevel() == L_DIFFERENTIAL && job->DiffMaxRunTime != 0 &&
-- (watchdog_time - jcr->start_time) >= job->DiffMaxRunTime) {
-+ run_time >= job->DiffMaxRunTime) {
-+ Dmsg0(200, "check_maxwaittime: DiffMaxcancel\n");
- cancel = true;
- } else if (jcr->get_JobLevel() == L_INCREMENTAL && job->IncMaxRunTime != 0 &&
-- (watchdog_time - jcr->start_time) >= job->IncMaxRunTime) {
-+ run_time >= job->IncMaxRunTime) {
-+ Dmsg0(200, "check_maxwaittime: IncMaxcancel\n");
- cancel = true;
-- } else if ((watchdog_time - jcr->start_time) >= job->MaxRunTime) {
-+ } else if (job->MaxRunTime > 0 && run_time >= job->MaxRunTime) {
-+ Dmsg0(200, "check_maxwaittime: Maxcancel\n");
- cancel = true;
- }
-
--- /dev/null
+
+ This patch can be applied to version 3.0.1 and fixes a
+ syntax error that causes builds on older Solarises to fail.
+
+ Apply it to version 3.0.1 with:
+
+ cd <bacula-source>
+ patch -p0 <3.0.1-solaris-acl.patch
+ ./configure <your-options>
+ make
+ ...
+ make install
+
+
+
+Index: src/filed/acl.c
+===================================================================
+--- src/filed/acl.c (revision 8810)
++++ src/filed/acl.c (working copy)
+@@ -1141,7 +1141,7 @@
+ /*
+ * OS specific functions for handling different types of acl streams.
+ */
+-static bool solaris_build_acl_streams(JCR *jcr, FF_PKT *ff_pkt);
++static bool solaris_build_acl_streams(JCR *jcr, FF_PKT *ff_pkt)
+ {
+ int n;
+ aclent_t *acls;