Re: mg(1): bug in writeout() function

2012-05-08 Thread Mark Lumsden
>writeout() writes the data in a buffer to a file. Currently, it also uses the >fupdstat() function to update the buffer statistics (fi_mode, fi_mtime..etc), >once the writing has been done. However, one of the two uses of writeout >introduces a bug where the fupdstat function is called using the w

mg(1): bug in writeout() function

2012-05-07 Thread Mark Lumsden
writeout() writes the data in a buffer to a file. Currently, it also uses the fupdstat() function to update the buffer statistics (fi_mode, fi_mtime..etc), once the writing has been done. However, one of the two uses of writeout introduces a bug where the fupdstat function is called using the wrong