closes bpo-34652: Always disable lchmod on Linux.#9234
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. |
| if test "$MACHDEP" = linux; then | ||
| undef HAVE_LCHMOD | ||
| if test "$MACHDEP" != linux; then | ||
| AC_CHECK_FUNC(lchmod) |
There was a problem hiding this comment.
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