public inbox for cluster-cvs@sourceware.org help / color / mirror / Atom feed
From: Christine Caulfield <chrissie@fedoraproject.org> To: cluster-cvs-relay@redhat.com Subject: cluster: RHEL5 - ccs: fix build with older glibc Date: Wed, 06 May 2009 09:36:00 -0000 [thread overview] Message-ID: <20090506093528.A0D27120371@lists.fedorahosted.org> (raw) 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;
reply other threads:[~2009-05-06 9:36 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20090506093528.A0D27120371@lists.fedorahosted.org \ --to=chrissie@fedoraproject.org \ --cc=cluster-cvs-relay@redhat.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).