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-157-ge1fb097
- From: drepper at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 12 May 2011 03:38:36 -0000
- Subject: GNU C Library master sources branch, master, updated. glibc-2.13-157-ge1fb097
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 e1fb097f447a89aa69a926e45e673a52d86a6c57 (commit)
from 5bdcc10322c488f53557440acf71623d8b313ab5 (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=e1fb097f447a89aa69a926e45e673a52d86a6c57
commit e1fb097f447a89aa69a926e45e673a52d86a6c57
Author: Ulrich Drepper <drepper@gmail.com>
Date: Wed May 11 23:37:25 2011 -0400
Report write error in addmnt even for cached streams.
diff --git a/ChangeLog b/ChangeLog
index bb37b83..2697af9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2011-05-11 Ulrich Drepper <drepper@gmail.com>
+ [BZ #12625]
+ * misc/mntent_r.c (addmntent): Flush the stream after the output
+
[BZ #12393]
* elf/dl-load.c (is_trusted_path): Remove unnecessary test.
(is_trusted_path_normalize): Skip initial colon. Append slash
diff --git a/NEWS b/NEWS
index c43a2b2..9e9d6e8 100644
--- a/NEWS
+++ b/NEWS
@@ -12,8 +12,8 @@ Version 2.14
386, 11257, 11258, 11487, 11532, 11578, 11653, 11668, 11724, 11945, 11947,
12158, 12178, 12200, 12346, 12393, 12420, 12445, 12449, 12454, 12460,
12469, 12489, 12509, 12510, 12518, 12541, 12545, 12551, 12583, 12587,
- 12597, 12611, 12631, 12650, 12653, 12655, 12660, 12681, 12685, 12711,
- 12713, 12714, 12717, 12723, 12734, 12738
+ 12597, 12611, 12625, 12631, 12650, 12653, 12655, 12660, 12681, 12685,
+ 12711, 12713, 12714, 12717, 12723, 12734, 12738
* The RPC implementation in libc is obsoleted. Old programs keep working
but new programs cannot be linked with the routines in libc anymore.
diff --git a/misc/mntent_r.c b/misc/mntent_r.c
index 9598528..6959f0e 100644
--- a/misc/mntent_r.c
+++ b/misc/mntent_r.c
@@ -1,5 +1,5 @@
/* Utilities for reading/writing fstab, mtab, etc.
- Copyright (C) 1995-2000, 2001, 2002, 2003, 2006, 2010
+ Copyright (C) 1995-2000, 2001, 2002, 2003, 2006, 2010, 2011
Free Software Foundation, Inc.
This file is part of the GNU C Library.
@@ -263,8 +263,8 @@ __addmntent (FILE *stream, const struct mntent *mnt)
mntcopy.mnt_type,
mntcopy.mnt_opts,
mntcopy.mnt_freq,
- mntcopy.mnt_passno)
- < 0 ? 1 : 0);
+ mntcopy.mnt_passno) < 0
+ || fflush (stream) != 0);
}
weak_alias (__addmntent, addmntent)
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 3 +++
NEWS | 4 ++--
misc/mntent_r.c | 6 +++---
3 files changed, 8 insertions(+), 5 deletions(-)
hooks/post-receive
--
GNU C Library master sources