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
233ef249
Commit
233ef249
authored
Dec 14, 2017
by
Anthony Sottile
Committed by
Serhiy Storchaka
Dec 14, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-32277: Fix exception raised from chmod(..., follow_symlinks=False) (#4797)
parent
02a0a192
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
Misc/NEWS.d/next/Library/2017-12-11-09-53-14.bpo-32277.jkKiVC.rst
...S.d/next/Library/2017-12-11-09-53-14.bpo-32277.jkKiVC.rst
+3
-0
Modules/posixmodule.c
Modules/posixmodule.c
+1
-0
No files found.
Misc/NEWS.d/next/Library/2017-12-11-09-53-14.bpo-32277.jkKiVC.rst
0 → 100644
View file @
233ef249
Raise ``NotImplementedError`` instead of ``SystemError`` on platforms where
``chmod(..., follow_symlinks=False)`` is not supported. Patch by Anthony
Sottile.
Modules/posixmodule.c
View file @
233ef249
...
@@ -2827,6 +2827,7 @@ os_chmod_impl(PyObject *module, path_t *path, int mode, int dir_fd,
...
@@ -2827,6 +2827,7 @@ os_chmod_impl(PyObject *module, path_t *path, int mode, int dir_fd,
dir_fd
,
follow_symlinks
);
dir_fd
,
follow_symlinks
);
else
else
follow_symlinks_specified
(
"chmod"
,
follow_symlinks
);
follow_symlinks_specified
(
"chmod"
,
follow_symlinks
);
return
NULL
;
}
}
else
else
#endif
#endif
...
...
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