This is the mail archive of the
cluster-cvs@sourceware.org
mailing list for the cluster.
cluster: RHEL5 - ccs: fix build with older glibc
- From: Christine Caulfield <chrissie at fedoraproject dot org>
- To: cluster-cvs-relay at redhat dot com
- Date: Wed, 6 May 2009 09:35:28 +0000 (UTC)
- Subject: cluster: RHEL5 - ccs: fix build with older glibc
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=7b0e46f9074005a5c14a371876330d9ce71edf7a
Commit: 7b0e46f9074005a5c14a371876330d9ce71edf7a
Parent: b07fe54c617838b9d281666dee9acffbf64c1d94
Author: Fabio M. Di Nitto <fdinitto@redhat.com>
AuthorDate: Mon Nov 3 05:52:39 2008 +0100
Committer: Christine Caulfield <ccaulfie@redhat.com>
CommitterDate: Wed May 6 10:34:20 2009 +0100
ccs: fix build with older glibc
mkostemp has been introduced only in glibc 2.7. Switch to mkstemp.
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
---
ccs/ccs_tool/upgrade.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/ccs/ccs_tool/upgrade.c b/ccs/ccs_tool/upgrade.c
index 2dc7f35..c94288f 100644
--- a/ccs/ccs_tool/upgrade.c
+++ b/ccs/ccs_tool/upgrade.c
@@ -234,7 +234,7 @@ static int upgrade_device_archive(char *location){
memset(tmp_file, 0, 128);
sprintf(tmp_file, "/tmp/ccs_tool_tmp_XXXXXX");
- tmp_fd = mkostemp(tmp_file, O_RDWR | O_CREAT |O_TRUNC);
+ tmp_fd = mkstemp(tmp_file);
if(tmp_fd < 0){
fprintf(stderr, "Unable to create temporary archive: %s\n", strerror(errno));
error = -errno;