Title: tarfile doesn't set file modes correctly on FreeBSD: test_tarfile.test_modes() fails on FreeBSD · Issue #108948 · python/cpython · GitHub
Open Graph Title: tarfile doesn't set file modes correctly on FreeBSD: test_tarfile.test_modes() fails on FreeBSD · Issue #108948 · python/cpython
X Title: tarfile doesn't set file modes correctly on FreeBSD: test_tarfile.test_modes() fails on FreeBSD · Issue #108948 · python/cpython
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 tha...
Open Graph 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...
X 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...
Opengraph URL: https://github.com/python/cpython/issues/108948
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"tarfile doesn't set file modes correctly on FreeBSD: test_tarfile.test_modes() fails on FreeBSD","articleBody":"# Bug report\n\n### Bug description:\n\nThe 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.\n\nThe reason is that [chmod](https://man.freebsd.org/cgi/man.cgi?query=chmod\u0026sektion=2\u0026manpath=FreeBSD+14.0-STABLE) 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.\n\nTested on FreeBSD 13.2 but documentation suggests this is not a new behavior.\n\n(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)\n\n### CPython versions tested on:\n\n3.12\n\n### Operating systems tested on:\n\nOther\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-108950\n* gh-109697\n* gh-109698\n* gh-109699\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/sorcio","@type":"Person","name":"sorcio"},"datePublished":"2023-09-05T16:51:17.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/108948/cpython/issues/108948"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:240ccd0b-827c-06a3-d46c-3d1abc41de54 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A846:F5661:F6FC5B:153C753:696A9403 |
| html-safe-nonce | 6b7239cf80b9be2d67a6c1fe4e134f71dfbd894f0a514544a564aee60993665d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBODQ2OkY1NjYxOkY2RkM1QjoxNTNDNzUzOjY5NkE5NDAzIiwidmlzaXRvcl9pZCI6IjMwOTAzOTk0Mzg0OTI1NzA2MjciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 1ac67859ba0429e5b582a6fd202f4f5b03024926942fab7820d82c44636d4d40 |
| hovercard-subject-tag | issue:1882388233 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/108948/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e4064deb740e8dce9d95bdb376b600b30b0a8df34b6b5aba2134ca438ad0ff2c/python/cpython/issues/108948 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e4064deb740e8dce9d95bdb376b600b30b0a8df34b6b5aba2134ca438ad0ff2c/python/cpython/issues/108948 |
| og:image:alt | 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... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sorcio |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4dd496afc954da9c207b2d9fbe86e3074619f565754aa1d9274aec30d9e5b8d7 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 31496a13b80a2f6ad77d6c617ee2255a3545b539 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width