Lines 409-415
Link Here
|
409 |
else |
409 |
else |
410 |
tmpdir="/tmp" |
410 |
tmpdir="/tmp" |
411 |
fi |
411 |
fi |
412 |
tmpfile="$tmpdir/.shtool.$$" |
412 |
if mkdir "$tmpdir/.shtool.$$"; then |
|
|
413 |
tmpfile="$tmpdir/.shtool.$$/shtool.tmp" |
414 |
else |
415 |
echo "$msgprefix:Error: failed to create temporary file" 1>&2 |
416 |
exit 1 |
417 |
fi |
418 |
tmpfile="$tmpdir/.shtool.$$/shtool.tmp" |
413 |
rm -f $tmpfile >/dev/null 2>&1 |
419 |
rm -f $tmpfile >/dev/null 2>&1 |
414 |
touch $tmpfile |
420 |
touch $tmpfile |
415 |
chmod 600 $tmpfile |
421 |
chmod 600 $tmpfile |