public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
* cluster: RHEL5 - ccs: fix build with older glibc
@ 2009-05-06  9:36 Christine Caulfield
  0 siblings, 0 replies; only message in thread
From: Christine Caulfield @ 2009-05-06  9:36 UTC (permalink / raw)
  To: cluster-cvs-relay

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;


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-05-06  9:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-06  9:36 cluster: RHEL5 - ccs: fix build with older glibc Christine Caulfield

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).