Репозитории ALT
S: | 10.85.04-alt2 |
5.1: | 10.35.32-alt1.M51.1 |
4.1: | 10.35.32-alt1.M41.1 |
4.0: | 10.35.32-alt1.M40.1 |
3.0: | 10.26.4-alt1 |
Группа :: Графика
Пакет: netpbm
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: netpbm-10.29-alt-anytopnm-tmp.patch
Скачать
Скачать
--- netpbm-10.29/converter/other/anytopnm- 2005-05-26 22:10:39 +0000
+++ netpbm-10.29/converter/other/anytopnm 2005-10-04 16:42:46 +0000
@@ -522,11 +522,16 @@ else
inputFile="-"
fi
-tempdir="${TMPDIR-/tmp}/anytopnm.$$"
-mkdir $tempdir || { echo "Could not create temporary file. Exiting."; exit 1;}
-chmod 700 $tempdir
-trap 'rm -rf $tempdir' 0
+exit_handler()
+{
+ local rc=$?
+ trap - EXIT
+ rm -rf -- "$tempdir"
+ exit $rc
+}
+tempdir=`mktemp -d -t anytopnm.XXXXXXXX` || exit 1
+trap exit_handler EXIT HUP INT QUIT PIPE TERM
findAwk;