Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Apr 2004 10:20:02 -0700 (PDT)
From:      Radim Kolar <hsn@netmag.cz>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: kern/65402: patch: fflush() should not return error on readonly files
Message-ID:  <200404161720.i3GHK2eI009105@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/65402; it has been noted by GNATS.

From: Radim Kolar <hsn@netmag.cz>
To: Colin Percival <colin.percival@wadham.ox.ac.uk>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: kern/65402: patch: fflush() should not return error on readonly files
Date: Fri, 16 Apr 2004 18:47:32 +0200

 > FreeBSD's behavior here is consequently correct; any behaviour would be
 > correct.  Programs which rely upon fflush() not returning an error when
 > passed a file which is opened read-only are broken, and should be fixed.
 I agree with you that my problem application rely upon nonportable behaviour.
 This is not reason for not including this patch.
 
 My points for including this patch are:
 
 1) do not breaks ISO standard
 2) do not breaks existing apps
 3) improve FreeBSD source code compatibility with other OSes, because these OSes are doing the same.
 4) fixes problem with my application, which is large (10MB) and difficult to fix.
 
 In summary: This patch will make things better, not worse. I do not know
 about negative side-effects.
 
 Radim



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200404161720.i3GHK2eI009105>