This is the mail archive of the
cluster-cvs@sourceware.org
mailing list for the cluster.
cluster: STABLE2 - rgmanager: fix again randomization of temp files
- From: "Fabio M. Di Nitto" <fabbione at fedoraproject dot org>
- To: cluster-cvs-relay at redhat dot com
- Date: Tue, 13 Jan 2009 05:03:35 +0000 (UTC)
- Subject: cluster: STABLE2 - rgmanager: fix again randomization of temp files
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=822896e4c07187867eae40d877e4b4ff2230c8ac
Commit: 822896e4c07187867eae40d877e4b4ff2230c8ac
Parent: 12d137bce7f1e0e8d0e5b896dcb5b78084559d82
Author: Fabio M. Di Nitto <fdinitto@redhat.com>
AuthorDate: Tue Jan 13 06:03:03 2009 +0100
Committer: Fabio M. Di Nitto <fdinitto@redhat.com>
CommitterDate: Tue Jan 13 06:03:03 2009 +0100
rgmanager: fix again randomization of temp files
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
---
rgmanager/src/resources/SAPDatabase | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/rgmanager/src/resources/SAPDatabase b/rgmanager/src/resources/SAPDatabase
index 70adbcc..462d543 100644
--- a/rgmanager/src/resources/SAPDatabase
+++ b/rgmanager/src/resources/SAPDatabase
@@ -817,7 +817,7 @@ then
fi
# Set a tempfile and make sure to clean it up again
-TEMPFILE="/tmp/SAPDatabase.$$.tmp"
+TEMPFILE="$(mktemp /tmp/SAPDatabase.tmp.XXXXXX)"
trap trap_handler INT TERM
# These operations don't require OCF instance parameters to be set