From 635b782e57381b06bfaff675910306841922d05c Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Fri, 31 Oct 2008 08:32:10 +0000 Subject: [PATCH] ebl Backport of the btraceback script that keeps trace file on working dir git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/branches/Branch-2.4@7955 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/scripts/btraceback.in | 9 ++++++--- bacula/technotes-2.4 | 2 ++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/bacula/scripts/btraceback.in b/bacula/scripts/btraceback.in index db70e68ec4..d4271c34ce 100755 --- a/bacula/scripts/btraceback.in +++ b/bacula/scripts/btraceback.in @@ -10,11 +10,14 @@ # PNAME=`basename $1` PNAME="${PNAME} on `hostname`" +WD="@working_dir@" if test `uname -s` = SunOS ; then - gcore -o @working_dir@/${PNAME} $2 - dbx $1 $2 <@scriptdir@/btraceback.dbx 2>&1 \ + gcore -o ${WD}/${PNAME} $2 + dbx $1 $2 <@scriptdir@/btraceback.dbx >${WD}/bacula.$$.traceback 2>&1 + cat ${WD}/bacula.$$.traceback \ | @sbindir@/bsmtp -h @smtp_host@ -f @dump_email@ -s "Bacula DBX traceback of ${PNAME}" @dump_email@ else - gdb -quiet -batch -x @scriptdir@/btraceback.gdb $1 $2 2>&1 \ + gdb -quiet -batch -x @scriptdir@/btraceback.gdb $1 $2 >${WD}/bacula.$$.traceback 2>&1 + cat ${WD}/bacula.$$.traceback \ | @sbindir@/bsmtp -h @smtp_host@ -f @dump_email@ -s "Bacula GDB traceback of ${PNAME}" @dump_email@ fi diff --git a/bacula/technotes-2.4 b/bacula/technotes-2.4 index ad731442d2..7a363ea640 100644 --- a/bacula/technotes-2.4 +++ b/bacula/technotes-2.4 @@ -1,6 +1,8 @@ Technical notes on version 2.4 General: +31Oct08 +ebl Backport of the btraceback script that keeps trace file on working dir 28Oct08 kes Migrate DB Log records too. This fixes last part of bug #1171. 24Oct08 -- 2.39.5