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

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


Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=23444ec19f99812d80dcd71e890a03d516f6404d
Commit:        23444ec19f99812d80dcd71e890a03d516f6404d
Parent:        9221337f25aeb09e4058f6720395738a422102f7
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:07:07 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