]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Merged revisions 304096 via svnmerge from
authorSean Bright <sean@malleable.com>
Wed, 26 Jan 2011 01:26:26 +0000 (01:26 +0000)
committerSean Bright <sean@malleable.com>
Wed, 26 Jan 2011 01:26:26 +0000 (01:26 +0000)
commitef8451a3b29ad307b4b6ec1b879da45385b35a27
tree9d4a5c13fa3098d1673a81ab5ed33cc926130eeb
parent0c837cdf5735daaa01afb025d9a1f953f01e77ac
Merged revisions 304096 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2

........
  r304096 | seanbright | 2011-01-25 20:24:58 -0500 (Tue, 25 Jan 2011) | 12 lines

  Per the man page, setvbuf() must be called before any other operation on an open file.

  We use setvbuf() to associate a buffer with a stream, but we have already written
  to the open file.  This works (by chance) on Linux, but fails on other platforms,
  such as OpenSolaris.

  (closes issue #16610)
  Reported by: bklang
  Patches:
        setvbuf.patch uploaded by crjw (license 963)
  Tested by: bklang, asgaroth, efutch
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@304097 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/file.c