Blame SOURCES/glibc-rh688980.patch

b40826
2011-05-11  Ulrich Drepper  <drepper@gmail.com>
b40826
b40826
	[BZ #12625]
b40826
	* misc/mntent_r.c (addmntent): Flush the stream after the output
b40826
b40826
Index: glibc-2.12-2-gc4ccff1/misc/mntent_r.c
b40826
===================================================================
b40826
--- glibc-2.12-2-gc4ccff1.orig/misc/mntent_r.c
b40826
+++ glibc-2.12-2-gc4ccff1/misc/mntent_r.c
b40826
@@ -263,8 +263,8 @@ __addmntent (FILE *stream, const struct 
b40826
 		   mntcopy.mnt_type,
b40826
 		   mntcopy.mnt_opts,
b40826
 		   mntcopy.mnt_freq,
b40826
-		   mntcopy.mnt_passno)
b40826
-	  < 0 ? 1 : 0);
b40826
+		   mntcopy.mnt_passno) < 0
b40826
+	  || fflush (stream) != 0);
b40826
 }
b40826
 weak_alias (__addmntent, addmntent)
b40826