Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37861864
en ru br
ALT Linux repos
S:7.0.3-alt1
5.0: 4.11-alt4
4.1: 4.11-alt3
4.0: 4.8-alt4
3.0: 4.8-alt2

Group :: Publishing
RPM: texinfo

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: texinfo-4.6-alt-texi2dvi-tmp.patch
Download


--- texinfo-4.6/util/texi2dvi.orig	2003-06-11 00:50:03 +0400
+++ texinfo-4.6/util/texi2dvi	2003-10-27 16:25:14 +0300
@@ -92,7 +92,6 @@
 set_language=
 textra=         # Extra TeX commands to insert in the input file.
 textra_cmd=     # sed command to insert TEXTRA where appropriate
-tmpdir=${TMPDIR:-/tmp}/t2d$$  # avoid collisions on 8.3 filesystems.
 txincludes=     # TEXINPUTS extensions, with trailing colon
 txiprereq=19990129 # minimum texinfo.tex version to have macro expansion
 verbose=false   # echo for verbose mode
@@ -208,13 +207,12 @@
 esac
 
 # Prepare the temporary directory.  Remove it at exit, unless debugging.
+tmpdir=`mktemp -dt texi2dvi.XXXXXXXXXX` || exit 1
+
 if test -z "$debug"; then
-  trap "cd / && rm -rf $tmpdir" 0 1 2 15
+  trap "rm -rf -- $tmpdir" EXIT HUP INT TERM QUIT
 fi
 
-# Create the temporary directory with strict rights
-(umask 077 && mkdir $tmpdir) || exit 1
-
 # Prepare the tools we might need.  This may be extra work in some
 # cases, but improves the readibility of the script.
 utildir=$tmpdir/utils
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin