diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2007-07-11 15:46:06 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2007-07-11 15:46:06 +0000 |
commit | 4b643270db559df6dba421a9e4371e19c8413b32 (patch) | |
tree | d2887642564adf0b4fcc251c7629d12e96b52ead /editor/pnmmargin | |
parent | 2cba33bd7cac4da8fe38aa2925bd4891ef450d54 (diff) | |
download | netpbm-mirror-4b643270db559df6dba421a9e4371e19c8413b32.tar.gz netpbm-mirror-4b643270db559df6dba421a9e4371e19c8413b32.tar.xz netpbm-mirror-4b643270db559df6dba421a9e4371e19c8413b32.zip |
use mkdir -m instead of umask
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@358 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'editor/pnmmargin')
-rwxr-xr-x | editor/pnmmargin | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/editor/pnmmargin b/editor/pnmmargin index 9950bdcb..f7c30b25 100755 --- a/editor/pnmmargin +++ b/editor/pnmmargin @@ -11,11 +11,9 @@ # documentation. This software is provided "as is" without express or # implied warranty. -oldumask=$(umask) -umask 0077 tempdir="${TMPDIR-/tmp}/pnmmargin.$$" -mkdir $tempdir || { echo "Could not create temporary file. Exiting."; exit 1;} -umask $oldumask +mkdir -m 0700 $tempdir || \ + { echo "Could not create temporary file. Exiting."; exit 1;} trap 'rm -rf $tempdir' 0 1 3 15 tmp1=$tempdir/pnmm1 |