]> git.ipfire.org Git - thirdparty/babel.git/commit
Remove determining time zone via systemsetup on macOS
authorAarni Koskela <akx@iki.fi>
Mon, 31 Oct 2022 10:47:23 +0000 (12:47 +0200)
committerAarni Koskela <akx@iki.fi>
Mon, 31 Oct 2022 11:24:28 +0000 (13:24 +0200)
commit03c8fae835c16d63fa5f4e3141074abb8bad3e83
treec9ba1fb705051b355a336adb7f74108c21ad984c
parentc7d04e8cb7bd60ff305d8bc6df2ce8a3f92c0223
Remove determining time zone via systemsetup on macOS

According to https://truesecdev.wordpress.com/2015/04/09/hidden-backdoor-api-to-root-privileges-in-apple-os-x/comment-page-1/
the `systemsetup` command has required superuser privileges since
macOS 10.8.5 (which has been EOL for over 6 years at the time of writing).
We shouldn't expect to use a codepath that requires a helper tool
that requires su in any regular use; IOW, _if_ a Babel user had ever
reached this path without having been superuser, it would have failed anyway
on any currently supported version of macOS.

Closes #895 (supersedes it).
babel/localtime/_unix.py