closes bpo-34652: Always disable lchmod on Linux. (GH-9234)

This commit is contained in:
Benjamin Peterson 2018-09-12 15:52:40 -07:00 committed by GitHub
parent 2087023fde
commit 40caa05fa4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 19 additions and 0 deletions

11
configure vendored
View file

@ -11285,6 +11285,17 @@ 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 <sys/types.h>
#include <dirent.h>
"