Commit 7499924
committed
Be extra sure that no forbidden files are hanging around.
Hopefully this is not strictly required, but it is better to avoid
a blank catch-all except clause when dealing with security details.
The test may fail for example if the program manages to make the
directory not writable by the user running CMS. In this case the
removal fails, but CMS ignores it. I do not know if this could
happen now, but in line of principle it may happen in the future
if we change the owner model without remembering of this snippet.1 parent 0e198e3 commit 7499924
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
342 | 342 | | |
343 | 343 | | |
344 | 344 | | |
345 | | - | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
346 | 349 | | |
347 | 350 | | |
348 | 351 | | |
| |||
0 commit comments