Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
40caa05f
Commit
40caa05f
authored
Sep 12, 2018
by
Benjamin Peterson
Committed by
GitHub
Sep 12, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
closes bpo-34652: Always disable lchmod on Linux. (GH-9234)
parent
2087023f
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
0 deletions
+19
-0
Misc/NEWS.d/next/Library/2018-09-12-14-46-51.bpo-34652.Rt1m1b.rst
...S.d/next/Library/2018-09-12-14-46-51.bpo-34652.Rt1m1b.rst
+1
-0
configure
configure
+11
-0
configure.ac
configure.ac
+7
-0
No files found.
Misc/NEWS.d/next/Library/2018-09-12-14-46-51.bpo-34652.Rt1m1b.rst
0 → 100644
View file @
40caa05f
Ensure :func:`os.lchmod` is never defined on Linux.
configure
View file @
40caa05f
...
...
@@ -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>
"
...
...
configure.ac
View file @
40caa05f
...
...
@@ -3454,6 +3454,13 @@ 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.), ,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment