Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!sdd.hp.com!elroy.jpl.nasa.gov!ames!uhccux!waikato!comp.vuw.ac.nz!asjl From: Andy.Linton@comp.vuw.ac.nz (Andy Linton) Newsgroups: comp.mail.sendmail Subject: Re: Sendmailv5.65+IDA problem Message-ID: <1990Nov18.214705.17591@comp.vuw.ac.nz> Date: 18 Nov 90 21:47:05 GMT References: <1990Nov13.173733@ap.co.umist.ac.uk> <1990Nov14.215011.4610@comp.vuw.ac.nz> <1990Nov15.110911@ap.co.umist.ac.uk> Sender: news@comp.vuw.ac.nz (News Admin) Reply-To: Andy.Linton@comp.vuw.ac.nz Organization: Computer Science Dept, Victoria Univ, Wellington, NEW ZEALAND Lines: 45 Nntp-Posting-Host: tinakori.comp.vuw.ac.nz Originator: asjl@tinakori.comp.vuw.ac.nz In article <1990Nov15.110911@ap.co.umist.ac.uk>, jf@ap.co.umist.ac.uk (John Forrest) writes: |> In article <1990Nov14.215011.4610@comp.vuw.ac.nz>, |> Andy.Linton@comp.vuw.ac.nz (Andy Linton) writes: |> |> |> |> This could be the same problem that I came against and posted |> details of |> |> a few days ago. On our MOREbsd HP boxes there is/was a bug in |> routine |> |> doprnt() which is called by printf() and co. The bug is exercise |> by the |> |> new version of putline() in util.c |> |> |> |> You can check whether this bug is present in your doprnt() routine |> by |> |> the following: |> |> |> |> #include |> |> |> |> main() |> |> { |> |> printf("doprnt() is %.0scorrect\n", "NOT "); |> |> } |> |> |> |> The old version of putline() could be used to further check for |> the |> |> prescence of this bug. |> |> This has indeed turned out to be the problem. The old 5.61 putline |> works fine on |> our Apollo system, the new one does not. I'm not sure why it has |> changed, anyway |> - on a cursorary glance, the expected behaviour seems identical, and |> I don't |> believe the new complicated printf's are necessarily more efficient |> than the |> previous fputs calls. I hope someone at HP/Apollo is listening though because there is a bug in doprnt(). I haven't looked at the efficiency either but the *correct* answer is not to install the old version of putline() but to fix the bug in doprnt().I