K 10
svn:author
V 6
kondou
K 8
svn:date
V 27
1998-10-31T17:22:21.000000Z
K 7
svn:log
V 1007
innd/his.c:
	- From: Arjan de Vet <Arjan.deVet@nl.origin-it.com>
	- According to Steinar Haug on the freebsd-hackers list it's not
	  strictly a bug according to POSIX 1003.1:

	    The FreeBSD freopen() behavior may actually be correct according to
	    the standards. My copy of POSIX 1003.1 (First edition, 1990-12-07)
	    says the following about ftell():

	    8.2.3.10 ftell()
	    The underlying function is lseek(). ... If the stream is opened in
	    append mode or if the O_APPEND flag is set as a consequence of
	    dealing with other handles on the file, the result of ftell() on
	    that stream is unspecified.

	    So freopen() behaving differently than fopen() may be allowed by
	    the standards - but it certainly violates POLA, and probably also
	    the FreeBSD manual page, which says:
	    [...]

	  So it's actually required to do an fseek() after the history file has
	  been freopen()-ed in append mode. Here's a new patch with the a new
	  comment why this fseek is necessary:

END
