Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37838088
en ru br
ALT Linux repos
S:1.2.1-alt1
5.0: 1.1.35-alt1.1
4.1: 1.1.35-alt1
4.0: 1.1.31-alt1.1
3.0: 1.1.31-alt1

Group :: Communications
RPM: mgetty

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: mgetty-1.1.30-mktemp.patch
Download


Use mktemp to create the stdin temporary file.  Not portable to systems
without mktemp, unfortunately.
--- mgetty-1.1.30/fax/faxspool.in	2002-12-18 16:59:16.000000000 -0500
+++ mgetty-1.1.30/fax/faxspool.in	2002-12-18 17:06:43.000000000 -0500
@@ -637,10 +637,14 @@
 #
     if [ x$file = x- ]
     then
+	file=`mktemp /tmp/faxspool.XXXXXX`
+	if test -z $file
+	then
+	    $echo "ERROR: can't create work file, giving up" >&2 ; exit 6
+	fi
+	trap "rm $file" 0
 	$echo "spooling $file (stdin)..."
-	trap "rm /tmp/faxsp.$$" 0
-        cat - >/tmp/faxsp.$$
-	file=/tmp/faxsp.$$
+        cat - >$file
     else
 	$echo "spooling $file..."
     fi
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin