-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
Closed
Labels
OS-freebsdtestsTests in the Lib/test dirTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
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
Metadata
Metadata
Assignees
Labels
OS-freebsdtestsTests in the Lib/test dirTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Projects
Status
Done