mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
do not pretend to support passing a fd to access()
This commit is contained in:
parent
9ed756bc21
commit
768f3b4492
3 changed files with 9 additions and 6 deletions
|
@ -2517,8 +2517,8 @@ os_lstat_impl(PyObject *module, path_t *path, int dir_fd)
|
|||
/*[clinic input]
|
||||
os.access -> bool
|
||||
|
||||
path: path_t(allow_fd=True)
|
||||
Path to be tested; can be string, bytes, or open-file-descriptor int.
|
||||
path: path_t
|
||||
Path to be tested; can be string or bytes
|
||||
|
||||
mode: int
|
||||
Operating-system mode bitfield. Can be F_OK to test existence,
|
||||
|
@ -2556,7 +2556,7 @@ Note that most operations will use the effective uid/gid, therefore this
|
|||
static int
|
||||
os_access_impl(PyObject *module, path_t *path, int mode, int dir_fd,
|
||||
int effective_ids, int follow_symlinks)
|
||||
/*[clinic end generated code: output=cf84158bc90b1a77 input=b75a756797af45ec]*/
|
||||
/*[clinic end generated code: output=cf84158bc90b1a77 input=8e8c3a6ba791fee3]*/
|
||||
{
|
||||
int return_value;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue