hi, @stephenmathieson, could u give me a test for this strike? I empty `/tmp/file`, and updated related codes in test.c, and run `make test`, and I got the correct result.