diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2020-06-27 17:22:49 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2020-06-27 17:22:49 +0000 |
commit | 318cef2ba85b550898cd7637dc334043967841df (patch) | |
tree | e5b6422795f397a1b0fc342713642c61be0a0efd /converter/ppm/hpcdtoppm/pcdovtoppm | |
parent | bae946382facd3561a32ace3ff15ee35e31549d7 (diff) | |
download | netpbm-mirror-318cef2ba85b550898cd7637dc334043967841df.tar.gz netpbm-mirror-318cef2ba85b550898cd7637dc334043967841df.tar.xz netpbm-mirror-318cef2ba85b550898cd7637dc334043967841df.zip |
Fix handling of mktemp failure
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@3871 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter/ppm/hpcdtoppm/pcdovtoppm')
-rwxr-xr-x | converter/ppm/hpcdtoppm/pcdovtoppm | 2 |
1 files changed, 1 insertions, 1 deletions
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` |