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 --- editor/pnmmargin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editor') diff --git a/editor/pnmmargin b/editor/pnmmargin index 9dbe24b7..1b5370be 100755 --- a/editor/pnmmargin +++ b/editor/pnmmargin @@ -12,7 +12,7 @@ # implied warranty. tempdir=$(mktemp -d "${TMPDIR:-/tmp}/netpbm.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 1 3 15 tmp1=$tempdir/pnmm1 -- cgit 1.4.1