D6554: cleanup: always `seek(0, io.SEEK_END)` after open in append mode before tell()

2019-06-20 Thread durin42 (Augie Fackler)
durin42 added a comment. Note that I mailed a version to the list for stable. This doesn't quite cleanly apply there, so I made the change twice so I could write the next change without waiting for a merge.

D6554: cleanup: always `seek(0, io.SEEK_END)` after open in append mode before tell()

2019-06-20 Thread durin42 (Augie Fackler)
durin42 created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY Consider the program: #include int main() { FILE *f = fopen("narf", "w"); fprintf(f, "narf\n"); fclose(f); f =