-
-
Notifications
You must be signed in to change notification settings - Fork 32.8k
closes bpo-34652: Always disable lchmod on Linux. #9234
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Symbolic link modes cannot be changed on Linux, so there's no point ever trying to use this function.
Thanks @benjaminp for the PR 🌮🎉.. I'm working now to backport this PR to: 2.7, 3.6, 3.7. |
(cherry picked from commit 40caa05) Co-authored-by: Benjamin Peterson <benjamin@python.org>
GH-9239 is a backport of this pull request to the 3.7 branch. |
(cherry picked from commit 40caa05) Co-authored-by: Benjamin Peterson <benjamin@python.org>
GH-9240 is a backport of this pull request to the 3.6 branch. |
Sorry, @benjaminp, I could not cleanly backport this to |
This reverts commit 40caa05.
(cherry picked from commit 40caa05) Co-authored-by: Benjamin Peterson <benjamin@python.org>
Thanks @benjaminp for the PR 🌮🎉.. I'm working now to backport this PR to: 3.7. |
Thanks @benjaminp for the PR 🌮🎉.. I'm working now to backport this PR to: 3.6. |
(cherry picked from commit 40caa05) Co-authored-by: Benjamin Peterson <benjamin@python.org>
GH-9243 is a backport of this pull request to the 3.7 branch. |
(cherry picked from commit 40caa05) Co-authored-by: Benjamin Peterson <benjamin@python.org>
GH-9244 is a backport of this pull request to the 3.6 branch. |
configure.ac
Outdated
if test "$MACHDEP" = linux; then | ||
undef HAVE_LCHMOD | ||
if test "$MACHDEP" != linux; then | ||
AC_CHECK_FUNC(lchmod) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then you should drop lchmod
from the call to AC_CHECK_FUNCS
above...
It looks like this did not backport correctly to 2.7.x, because 2.7.16 (which lists this issue as being fixed) refuses to surface |
Symbolic link modes cannot be changed on Linux, so there's no point ever trying to use this function.
https://bugs.python.org/issue34652