Bug report
Bug description:
The best example for this is given in the regression test suite. TestExtractionFilters.test_modes in test_tarfiles fails with OSError: [Errno 79] Inappropriate file type or format on FreeBSD.
The reason is that chmod fails with EFTYPE (errno 79) when attempting to set the sticky bit (S_ISVTX) on a file when the effective user is not root. Most other platforms will just ignore the bit in chmod calls.
Tested on FreeBSD 13.2 but documentation suggests this is not a new behavior.
(Note that FreeBSD buildbots haven't been running for a while. This is probably why this issue, although it causes a test failure, hadn't been caught before)
CPython versions tested on:
3.12
Operating systems tested on:
Other
Linked PRs
Bug report
Bug description:
The best example for this is given in the regression test suite.
TestExtractionFilters.test_modesintest_tarfilesfails withOSError: [Errno 79] Inappropriate file type or formaton FreeBSD.The reason is that chmod fails with EFTYPE (errno 79) when attempting to set the sticky bit (S_ISVTX) on a file when the effective user is not root. Most other platforms will just ignore the bit in chmod calls.
Tested on FreeBSD 13.2 but documentation suggests this is not a new behavior.
(Note that FreeBSD buildbots haven't been running for a while. This is probably why this issue, although it causes a test failure, hadn't been caught before)
CPython versions tested on:
3.12
Operating systems tested on:
Other
Linked PRs