cluster: STABLE2 - rgmanager: fix again randomization of temp files

Fabio M. Di Nitto fabbione@fedoraproject.org
Tue Jan 13 05:04:00 GMT 2009


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



More information about the Cluster-cvs mailing list