Commit fbbf540
committed
intercept: file open with O_TRUNC to avoid corrupt output if the file is already exists.
If the output of intercept is a file that already exists, the file was not trucated.
Then if the output length is smaller than previous output, the content is corrupt.1 parent 0f38e9b commit fbbf540
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
0 commit comments