Group :: Archiving/Backup
RPM: sharutils
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Patch: sharutils-4.3.77-alt-tmp.patch
Download
Download
--- sharutils-4.3.77/src/mailshar.in.orig 2002-12-02 23:22:20 +0300
+++ sharutils-4.3.77/src/mailshar.in 2005-01-09 01:02:35 +0300
@@ -37,7 +37,11 @@
or .zoo suffix."
if type -p mktemp >/dev/null 2>/dev/null; then
- temp=`mktemp /var/tmp/$$.shar.XXXXXX` || exit 1
+ temp=`mktemp -t mailshar.XXXXXXXXXX`
+ if [ $? -ne 0 ]; then
+ echo "$0: Can't create temp file, exiting..."
+ exit 1
+ fi
else
temp=/var/tmp/$$.shar
rm -f $temp*