From 318cef2ba85b550898cd7637dc334043967841df Mon Sep 17 00:00:00 2001 From: giraffedata Date: Sat, 27 Jun 2020 17:22:49 +0000 Subject: Fix handling of mktemp failure git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@3871 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- converter/other/anytopnm | 2 +- converter/ppm/hpcdtoppm/pcdovtoppm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'converter') diff --git a/converter/other/anytopnm b/converter/other/anytopnm index 5409bccd..94838556 100755 --- a/converter/other/anytopnm +++ b/converter/other/anytopnm @@ -538,7 +538,7 @@ else fi tempdir=$(mktemp -d "${TMPDIR:-/tmp}/anytopnm.XXXXXXXX") || - ( echo "Could not create temporary file. Exiting." 1>&2; exit 1; ) + { echo "Could not create temporary file. Exiting." 1>&2; exit 1; } trap 'rm -rf $tempdir' 0 # Take out all spaces diff --git a/converter/ppm/hpcdtoppm/pcdovtoppm b/converter/ppm/hpcdtoppm/pcdovtoppm index 715734bd..4f83f121 100755 --- a/converter/ppm/hpcdtoppm/pcdovtoppm +++ b/converter/ppm/hpcdtoppm/pcdovtoppm @@ -113,7 +113,7 @@ if [ $# = 0 ]; then fi tempdir=$(mktemp -d "${TMPDIR:-/tmp}/pcdovtoppm.XXXXXXXX") || - ( echo "Could not create temporary file. Exiting." 1>&2; exit 1; ) + { echo "Could not create temporary file. Exiting." 1>&2; exit 1; } trap 'rm -rf $tempdir' 0 tmpfile=`tempfile -p pi -m 600` -- cgit 1.4.1