This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug manual/2074] _IO_new_file_xsputn() in fileops.c not checking for EOF
- From: "mtk.manpages at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Mon, 30 Apr 2012 01:11:15 +0000
- Subject: [Bug manual/2074] _IO_new_file_xsputn() in fileops.c not checking for EOF
- Auto-submitted: auto-generated
- References: <bug-2074-131@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=2074
Michael Kerrisk <mtk.manpages at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mtk.manpages at gmail dot
| |com
--- Comment #14 from Michael Kerrisk <mtk.manpages at gmail dot com> 2012-04-30 01:11:15 UTC ---
(In reply to comment #11)
> Created attachment 4777 [details]
> proposed patch
>
> Ok to commit?
I've committed a corresponding change to the fopencookie(3) man page.
@@ -158,7 +158,8 @@ As its function result, the
.I write
function should return the number of bytes copied from
.IR buf ,
-or \-1 on error.
+or 0 on error.
+(The function must not return a negative value.)
The
.I write
function should update the stream offset appropriately.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.