diff -Nru cronic-2/cronic cronic-3/cronic --- cronic-2/cronic 2011-04-14 21:22:52.000000000 +0000 +++ cronic-3/cronic 2016-04-10 08:04:30.000000000 +0000 @@ -1,14 +1,15 @@ #!/bin/bash -# Cronic v2 - cron job report wrapper -# Copyright 2007 Chuck Houpt. No rights reserved, whatsoever. +# Cronic v3 - cron job report wrapper +# Copyright 2007-2016 Chuck Houpt. No rights reserved, whatsoever. # Public Domain CC0: http://creativecommons.org/publicdomain/zero/1.0/ set -eu -OUT=/tmp/cronic.out.$$ -ERR=/tmp/cronic.err.$$ -TRACE=/tmp/cronic.trace.$$ +TMP=$(mktemp -d) +OUT=$TMP/cronic.out +ERR=$TMP/cronic.err +TRACE=$TMP/cronic.trace set +e "$@" >$OUT 2>$TRACE @@ -43,6 +44,4 @@ fi fi -rm -f "$OUT" -rm -f "$ERR" -rm -f "$TRACE" +rm -rf "$TMP" diff -Nru cronic-2/debian/changelog cronic-3/debian/changelog --- cronic-2/debian/changelog 2016-03-22 10:14:00.000000000 +0000 +++ cronic-3/debian/changelog 2016-04-11 08:19:00.000000000 +0000 @@ -1,3 +1,11 @@ +cronic (3-1) unstable; urgency=medium + + * Updated from upstream. (Closes: #820331) + * Update manual to v3. + * Update policy to 3.9.8 (no changes required). + + -- Daniel Lange Sun, 10 Apr 2016 10:59:36 +0200 + cronic (2-1) unstable; urgency=medium * Initial release. (Closes: #711017) diff -Nru cronic-2/debian/control cronic-3/debian/control --- cronic-2/debian/control 2016-03-22 10:14:00.000000000 +0000 +++ cronic-3/debian/control 2016-04-11 08:19:00.000000000 +0000 @@ -6,7 +6,7 @@ Vcs-Browser: https://anonscm.debian.org/cgit/collab-maint/cronic.git Vcs-Git: https://anonscm.debian.org/git/collab-maint/cronic.git Homepage: http://habilis.net/cronic/ -Standards-Version: 3.9.7 +Standards-Version: 3.9.8 Package: cronic Architecture: all diff -Nru cronic-2/debian/cronic.1 cronic-3/debian/cronic.1 --- cronic-2/debian/cronic.1 2016-03-22 10:14:00.000000000 +0000 +++ cronic-3/debian/cronic.1 2016-04-11 08:19:00.000000000 +0000 @@ -1,5 +1,5 @@ .\" man file for cronic -.TH cronic "1" "March 2016 - v2" "admin" "admin" +.TH cronic "1" "April 2016 - v3" "admin" "admin" .SH NAME cronic \- a shell script to help control the most annoying feature of cron: unwanted emailed output @@ -70,6 +70,8 @@ .fi .PP .SH VERSION HISTORY +\fBv3\fR \- Use mktemp \-d to avoid race-conditions and security problems. +.PP \fBv2\fR \- Corrected command evaluation, so shell meta-chars are preserved correctly (Thanks to Frank Wallingford for the fix). .PP @@ -96,4 +98,4 @@ .SH "SEE ALSO" .BR crontab(5), .BR bash(1) -.\" end of man file for cronicl. Daniel Lange 160315, man v1.0 for cronic v2 +.\" end of man file for cronicl. Daniel Lange 160410, man v1.1 for cronic v3