about summary refs log tree commit diff
path: root/converter/other
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2007-07-11 15:53:18 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2007-07-11 15:53:18 +0000
commit026502e4d4d08bd61bf44f93cd1dd510ebddf0b7 (patch)
tree93446474959f449e4fe95ab1348e64ca372cd854 /converter/other
parent4b643270db559df6dba421a9e4371e19c8413b32 (diff)
downloadnetpbm-mirror-026502e4d4d08bd61bf44f93cd1dd510ebddf0b7.tar.gz
netpbm-mirror-026502e4d4d08bd61bf44f93cd1dd510ebddf0b7.tar.xz
netpbm-mirror-026502e4d4d08bd61bf44f93cd1dd510ebddf0b7.zip
Use mkdir -m instead of chmod
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@359 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter/other')
-rwxr-xr-xconverter/other/anytopnm5
1 files changed, 2 insertions, 3 deletions
diff --git a/converter/other/anytopnm b/converter/other/anytopnm
index 6c56b5ef..99740f79 100755
--- a/converter/other/anytopnm
+++ b/converter/other/anytopnm
@@ -507,9 +507,8 @@ else
 fi
 
 tempdir="${TMPDIR-/tmp}/anytopnm.$$"
-mkdir $tempdir || { echo "Could not create temporary file. Exiting."; exit 1;}
-chmod 700 $tempdir
-
+mkdir -m 0700 $tempdir || \
+  { echo "Could not create temporary file. Exiting."; exit 1;}
 trap 'rm -rf $tempdir' 0
 
 # Take out all spaces