summaryrefslogtreecommitdiff
path: root/archivers/gsharutils/patches/patch-aj
blob: 6d398d499ac328cfe39a0e1d3860754ec6cb2d7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$NetBSD: patch-aj,v 1.5 2005/03/31 14:41:48 salo Exp $

--- src/mailshar.in.orig	1995-11-26 00:42:47.000000000 +0100
+++ src/mailshar.in	2005-03-31 15:51:27.000000000 +0200
@@ -33,7 +33,11 @@
 If none of -MTBzZ are given, -z is automatically selected if *none*
 of the FILEs have an .arc, .exz, .gif, .z, .gz, .Z, .zip or .zoo suffix."
 
-temp=/usr/tmp/$$.shar
+temp=`mktemp -q /tmp/${0##*/}.XXXXXX`
+if [ $? -ne 0 ]; then
+    echo "$0: Can't create temp file, exiting..."
+    exit 1
+fi
 
 ### Decode the options.