public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
* resource-agents: master - rgmanager: fix again randomization of temp files
@ 2009-01-13 5:10 Fabio M. Di Nitto
0 siblings, 0 replies; only message in thread
From: Fabio M. Di Nitto @ 2009-01-13 5:10 UTC (permalink / raw)
To: cluster-cvs-relay
Gitweb: http://git.fedorahosted.org/git/resource-agents.git?p=resource-agents.git;a=commitdiff;h=75ec13c4df9b18b2d114660fd290ddb023249ffd
Commit: 75ec13c4df9b18b2d114660fd290ddb023249ffd
Parent: d1d94b3657bf6a5ad708513c827534af2378845b
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:09:23 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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-01-13 5:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-13 5:10 resource-agents: master - rgmanager: fix again randomization of temp files Fabio M. Di Nitto
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).