mark@cbosgd.UUCP (05/26/83)
Relay-Version:version B 2.10 5/3/83; site mhuxt.UUCP Posting-Version:version B 2.10 5/3/83; site cbosgd.UUCP Message-ID:<3553@cbosgd.UUCP> Date:Thu, 26-May-83 10:39:21 EDT Organization:Bell Labs, Columbus A note on this fix: this is not so much a bug in trt's version of UUCP as a portability problem. The semantics of "a+" are different in USG and V7 UNIX. In V7, "a+" means "open for read&write and then seek to the end". In USG, it means "open for read&write, and before doing any writes, always seek to the end of the file". This change was made to do the right thing when multiple processes are trying to append to a file at the same time. In any case, the change to "r+" and removing the lseek seems like a good idea.