From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15461 invoked by alias); 6 May 2009 09:36:29 -0000 Received: (qmail 15454 invoked by alias); 6 May 2009 09:36:28 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS X-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS X-Spam-Check-By: sourceware.org X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on bastion2.fedora.phx.redhat.com Subject: cluster: RHEL5 - ccs: fix build with older glibc To: cluster-cvs-relay@redhat.com X-Project: Cluster Project X-Git-Module: cluster.git X-Git-Refname: refs/heads/RHEL5 X-Git-Reftype: branch X-Git-Oldrev: b07fe54c617838b9d281666dee9acffbf64c1d94 X-Git-Newrev: 7b0e46f9074005a5c14a371876330d9ce71edf7a From: Christine Caulfield Message-Id: <20090506093528.A0D27120371@lists.fedorahosted.org> Date: Wed, 06 May 2009 09:36:00 -0000 X-Scanned-By: MIMEDefang 2.58 on 172.16.52.254 Mailing-List: contact cluster-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: cluster-cvs-owner@sourceware.org X-SW-Source: 2009-q2/txt/msg00225.txt.bz2 Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=7b0e46f9074005a5c14a371876330d9ce71edf7a Commit: 7b0e46f9074005a5c14a371876330d9ce71edf7a Parent: b07fe54c617838b9d281666dee9acffbf64c1d94 Author: Fabio M. Di Nitto AuthorDate: Mon Nov 3 05:52:39 2008 +0100 Committer: Christine Caulfield 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 --- 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;