Commit f67f218
committed
fix: overwrite report file rather than unlink it when -f option is set
Since the introduction of landlock, we only have read-write permissions
on the report and log files. We do not have the permission to unlink it,
so we overwrite the content instead of unlinking the file.1 parent 351545f commit f67f218
1 file changed
+3
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
197 | | - | |
| 197 | + | |
198 | 198 | | |
199 | | - | |
| 199 | + | |
200 | 200 | | |
201 | 201 | | |
202 | | - | |
| 202 | + | |
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
| |||
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | 212 | | |
222 | 213 | | |
223 | 214 | | |
| |||
0 commit comments