Blame SOURCES/glibc-rh688980.patch

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