Commit 035b12d
conftest: fix rmtree cleanup crash on Linux (os.lchflags does not exist)
The archiver fixture's rmtree onerror handler called os.lchflags(path, 0)
when has_lchflags was True. But has_lchflags is also True on Linux (flags
are cleared via ioctl there), where os.lchflags does not exist, raising an
uncaught AttributeError and turning teardown into an ERROR. Use borg's
cross-platform platform.set_flags instead.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 4838480 commit 035b12d
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
195 | 196 | | |
196 | 197 | | |
197 | 198 | | |
| 199 | + | |
| 200 | + | |
198 | 201 | | |
199 | | - | |
| 202 | + | |
200 | 203 | | |
201 | 204 | | |
202 | 205 | | |
| |||
0 commit comments