]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/scripts/btraceback.in
Fix TLS #ifdefing when TLS turned off.
[bacula/bacula] / bacula / scripts / btraceback.in
index 656e8b31efaddb8d3bed126d691e8a397ba5c3e1..7a66e32ee60234bd60dbd701834fa7ae2413acad 100755 (executable)
@@ -9,11 +9,11 @@
 #  $2 = main pid of running program to be traced back.
 #
 PNAME=`basename $1`
-if test `uname -s` = SunOs ; then
+if test `uname -s` = SunOS ; then
   gcore -o @working_dir@/${PNAME} $2
   dbx $1 $2 <@scriptdir@/btraceback.dbx 2>&1 \
-   | @sbindir@/bsmtp -h @smtp_host@ -s "Bacula DBX traceback of ${PNAME}" @dump_email@
+   | @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 \
-   | @sbindir@/bsmtp -h @smtp_host@ -s "Bacula GDB traceback of ${PNAME}" @dump_email@
+   | @sbindir@/bsmtp -h @smtp_host@ -f @dump_email@ -s "Bacula GDB traceback of ${PNAME}" @dump_email@
 fi