From 96f9030d1a8d421133c701616e82f63a9ddb2875 Mon Sep 17 00:00:00 2001 From: stevetraylen Date: Apr 20 2010 19:01:37 +0000 Subject: rhbz#581022 --- diff --git a/fetch-crl-2.8.4-mktemp.patch b/fetch-crl-2.8.4-mktemp.patch new file mode 100644 index 0000000..3c4a1fe --- /dev/null +++ b/fetch-crl-2.8.4-mktemp.patch @@ -0,0 +1,12 @@ +diff -urN fetch-crl-2.8.4-dist/edg-fetch-crl fetch-crl-2.8.4/edg-fetch-crl +--- fetch-crl-2.8.4-dist/edg-fetch-crl 2010-04-05 13:10:16.000000000 -0400 ++++ fetch-crl-2.8.4/edg-fetch-crl 2010-04-20 11:19:15.000000000 -0400 +@@ -898,7 +898,7 @@ + + # install downloaded CRL file in target directory + if [ -f "${outputDirectory}/${finalCrlFileName}" ]; then +- savefile=`${mktemp} -q ${outputDirectory}/${finalCrlFileName}.XXXXXX.r0` ++ savefile=`${mktemp} -q ${outputDirectory}/${finalCrlFileName}.XXXXXX` + ${cp} -p "${outputDirectory}/${finalCrlFileName}" "${savefile}" + ValidateCRLHashFile "${savefile}" contentonly + if [ x"${crlHashFileIsValid}" != x"yes" ]; then diff --git a/fetch-crl.spec b/fetch-crl.spec index 8d26f16..8ad8419 100644 --- a/fetch-crl.spec +++ b/fetch-crl.spec @@ -4,7 +4,7 @@ Name: fetch-crl Version: 2.8.4 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Downloads Certificate Revocation Lists Group: Applications/System @@ -12,6 +12,11 @@ License: EU Datagrid URL: https://dist.eugridpma.info/distribution/util/%{name} Source: https://dist.eugridpma.info/distribution/util/%{name}/%{name}-%{version}.tar.gz +#Ensure temporary files are removed. +#https://bugzilla.redhat.com/show_bug.cgi?id=581022 +Patch0: fetch-crl-2.8.4-mktemp.patch + + BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch @@ -29,6 +34,7 @@ It assumes that the installed CA files follow the hash.crl_url convention. %prep %setup -q +%patch0 -p1 %build @@ -78,6 +84,9 @@ fi %changelog +* Tue Apr 20 2010 Steve Traylen - 2.8.4-2 +- Add fetch-crl-2.8.4-mktemp.patch. rhbz#407851, Jason Smith @ BNL. + * Sun Apr 5 2010 Steve Traylen - 2.8.4-1 - New upstream 2.8.4. Remove patch fetch-crl-syntax-randomwait