use /tmp safely (bnc#472793), evaluate $TMPDIR
authorOlaf Dabrunz <od@suse.de>
Thu, 5 Feb 2009 18:31:20 +0000 (19:31 +0100)
committerOlaf Dabrunz <od@suse.de>
Thu, 5 Feb 2009 18:31:20 +0000 (19:31 +0100)
commitf0e3ab220e894bfeac9cca17b895d470dbdd503f
tree4bbe67905e018d8ef80bd39b2b36f18245e29842
parent1190df9bd44dcea6ef0242088b955e4fc2513d9a
use /tmp safely (bnc#472793), evaluate $TMPDIR

- use File::Temp::tempdir() to safely create a temporary directory for sam's
  temporary files
- use $TMPDIR if defined
- document $TEMPDIR and fallback default in usage message
sam