http://web.nvd.nist.gov/view/vuln/detail?execution=e4s1
http://lists.debian.org/debian-devel/2008/08/msg00347.html
http://uvw.ru/report.sid.txt
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8134
91ce42f0-d328-0410-95d8-
f526ca767f89
;;
loaded)
- ${MTX} -f $ctl status >/tmp/mtx.$$
+ tempfile=`mktemp -t` || exit 33
+ ${MTX} -f $ctl status > $tempfile
rtn=$?
- cat /tmp/mtx.$$ | grep "^Data Transfer Element $drive:Full" | awk '{print $7}'
- cat /tmp/mtx.$$ | grep "^Data Transfer Element $drive:Empty" | awk '{print 0}'
- rm -f /tmp/mtx.$$
+ cat $tempfile | grep "^Data Transfer Element $drive:Full" | awk '{print $7}'
+ cat $tempfile | grep "^Data Transfer Element $drive:Empty" | awk '{print 0}'
+ rm -f $tempfile
exit $rtn
;;