From a535bc600bc6caae7b27b2f479c23e6d613f3098 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Wed, 12 Sep 2018 15:55:59 -0700 Subject: [PATCH] Revert "closes bpo-34652: Always disable lchmod on Linux. (GH-9234)" This reverts commit 40caa05fa4d1810a1a6bfc34e0ec930c351089b7. --- .../Library/2018-09-12-14-46-51.bpo-34652.Rt1m1b.rst | 1 - configure | 11 ----------- configure.ac | 7 ------- 3 files changed, 19 deletions(-) delete mode 100644 Misc/NEWS.d/next/Library/2018-09-12-14-46-51.bpo-34652.Rt1m1b.rst diff --git a/Misc/NEWS.d/next/Library/2018-09-12-14-46-51.bpo-34652.Rt1m1b.rst b/Misc/NEWS.d/next/Library/2018-09-12-14-46-51.bpo-34652.Rt1m1b.rst deleted file mode 100644 index cbdd7e0ec6ce09..00000000000000 --- a/Misc/NEWS.d/next/Library/2018-09-12-14-46-51.bpo-34652.Rt1m1b.rst +++ /dev/null @@ -1 +0,0 @@ -Ensure :func:`os.lchmod` is never defined on Linux. diff --git a/configure b/configure index d341453443fc4c..fe642c439a4c3b 100755 --- a/configure +++ b/configure @@ -11285,17 +11285,6 @@ fi done -# Force lchmod off for Linux. Linux disallows changing the mode of symbolic -# links. Some libc implementations have a stub lchmod implementation that always -# returns an error. -if test "$MACHDEP" != linux; then - ac_fn_c_check_func "$LINENO" "lchmod" "ac_cv_func_lchmod" -if test "x$ac_cv_func_lchmod" = xyes; then : - -fi - -fi - ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include #include " diff --git a/configure.ac b/configure.ac index cf7328c4032a95..a985ec2b000b65 100644 --- a/configure.ac +++ b/configure.ac @@ -3454,13 +3454,6 @@ AC_CHECK_FUNCS(alarm accept4 setitimer getitimer bind_textdomain_codeset chown \ truncate uname unlinkat unsetenv utimensat utimes waitid waitpid wait3 wait4 \ wcscoll wcsftime wcsxfrm wmemcmp writev _getpty) -# Force lchmod off for Linux. Linux disallows changing the mode of symbolic -# links. Some libc implementations have a stub lchmod implementation that always -# returns an error. -if test "$MACHDEP" != linux; then - AC_CHECK_FUNC(lchmod) -fi - AC_CHECK_DECL(dirfd, AC_DEFINE(HAVE_DIRFD, 1, Define if you have the 'dirfd' function or macro.), ,