This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch, master, updated. glibc-2.13-200-g0a197a9
- From: drepper at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 17 May 2011 05:46:12 -0000
- Subject: GNU C Library master sources branch, master, updated. glibc-2.13-200-g0a197a9
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via 0a197a9dfed71915b50e112834c044c6d2351312 (commit)
from ee30c380b8f7c9253c87103c58c5201268d30181 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sources.redhat.com/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=0a197a9dfed71915b50e112834c044c6d2351312
commit 0a197a9dfed71915b50e112834c044c6d2351312
Author: H.J. Lu <hongjiu.lu@intel.com>
Date: Tue May 17 01:45:49 2011 -0400
Fix fileops.c build for old kernels
diff --git a/ChangeLog b/ChangeLog
index be25cba..c427a2f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2011-05-16 H.J. Lu <hongjiu.lu@intel.com>
+
+ * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
+
2011-05-17 Ulrich Drepper <drepper@gmail.com>
[BZ #11837]
diff --git a/libio/fileops.c b/libio/fileops.c
index 2b696ab..30de460 100644
--- a/libio/fileops.c
+++ b/libio/fileops.c
@@ -348,6 +348,7 @@ _IO_new_file_fopen (fp, filename, mode, is32not64)
#ifndef __ASSUME_O_CLOEXEC
if ((fp->_flags2 & _IO_FLAGS2_CLOEXEC) != 0 && __have_o_cloexec <= 0)
{
+ int fd = _IO_fileno (fp);
if (__have_o_cloexec == 0)
{
int flags = __fcntl (fd, F_GETFD);
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 4 ++++
libio/fileops.c | 1 +
2 files changed, 5 insertions(+), 0 deletions(-)
hooks/post-receive
--
GNU C Library master sources