do not pretend to support passing a fd to access()

This commit is contained in:
Benjamin Peterson 2016-09-05 15:29:33 -07:00
parent 9ed756bc21
commit 768f3b4492
3 changed files with 9 additions and 6 deletions

View file

@ -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;