Skip to content

Commit ed709d5

Browse files
authored
bpo-34652: Remove lchmod from the big func checking block. (GH-9247)
A fix for 883702e.
1 parent c9a71dd commit ed709d5

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

configure

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11258,7 +11258,7 @@ for ac_func in alarm accept4 setitimer getitimer bind_textdomain_codeset chown \
1125811258
getgrouplist getgroups getlogin getloadavg getpeername getpgid getpid \
1125911259
getpriority getresuid getresgid getpwent getpwnam_r getpwuid_r getspnam getspent getsid getwd \
1126011260
if_nameindex \
11261-
initgroups kill killpg lchmod lchown lockf linkat lstat lutimes mmap \
11261+
initgroups kill killpg lchown lockf linkat lstat lutimes mmap \
1126211262
memrchr mbrtowc mkdirat mkfifo \
1126311263
mkfifoat mknod mknodat mktime mremap nice openat pathconf pause pipe2 plock poll \
1126411264
posix_fallocate posix_fadvise posix_spawn pread preadv preadv2 \
@@ -11289,10 +11289,16 @@ done
1128911289
# links. Some libc implementations have a stub lchmod implementation that always
1129011290
# returns an error.
1129111291
if test "$MACHDEP" != linux; then
11292+
for ac_func in lchmod
11293+
do :
1129211294
ac_fn_c_check_func "$LINENO" "lchmod" "ac_cv_func_lchmod"
1129311295
if test "x$ac_cv_func_lchmod" = xyes; then :
11296+
cat >>confdefs.h <<_ACEOF
11297+
#define HAVE_LCHMOD 1
11298+
_ACEOF
1129411299

1129511300
fi
11301+
done
1129611302

1129711303
fi
1129811304

configure.ac

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3438,7 +3438,7 @@ AC_CHECK_FUNCS(alarm accept4 setitimer getitimer bind_textdomain_codeset chown \
34383438
getgrouplist getgroups getlogin getloadavg getpeername getpgid getpid \
34393439
getpriority getresuid getresgid getpwent getpwnam_r getpwuid_r getspnam getspent getsid getwd \
34403440
if_nameindex \
3441-
initgroups kill killpg lchmod lchown lockf linkat lstat lutimes mmap \
3441+
initgroups kill killpg lchown lockf linkat lstat lutimes mmap \
34423442
memrchr mbrtowc mkdirat mkfifo \
34433443
mkfifoat mknod mknodat mktime mremap nice openat pathconf pause pipe2 plock poll \
34443444
posix_fallocate posix_fadvise posix_spawn pread preadv preadv2 \
@@ -3458,7 +3458,7 @@ AC_CHECK_FUNCS(alarm accept4 setitimer getitimer bind_textdomain_codeset chown \
34583458
# links. Some libc implementations have a stub lchmod implementation that always
34593459
# returns an error.
34603460
if test "$MACHDEP" != linux; then
3461-
AC_CHECK_FUNC(lchmod)
3461+
AC_CHECK_FUNCS(lchmod)
34623462
fi
34633463

34643464
AC_CHECK_DECL(dirfd,

0 commit comments

Comments
 (0)