Blame SOURCES/glibc-rh688980.patch

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