Skip to content

Commit b0e8276

Browse files
committed
Use correct function name in os.statx argument validation errors
1 parent bc3155b commit b0e8276

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎Modules/posixmodule.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3557,9 +3557,9 @@ os_statx_impl(PyObject *module, path_t *path, unsigned int mask, int dir_fd,
35573557
int follow_symlinks, int sync, int raw)
35583558
/*[clinic end generated code: output=94261132ec9b507e input=de4f8caad620361b]*/
35593559
{
3560-
if (path_and_dir_fd_invalid("stat", path, dir_fd) ||
3561-
dir_fd_and_fd_invalid("stat", dir_fd, path->fd) ||
3562-
fd_and_follow_symlinks_invalid("stat", path->fd, follow_symlinks))
3560+
if (path_and_dir_fd_invalid("statx", path, dir_fd) ||
3561+
dir_fd_and_fd_invalid("statx", dir_fd, path->fd) ||
3562+
fd_and_follow_symlinks_invalid("statx", path->fd, follow_symlinks))
35633563
return NULL;
35643564

35653565
int result;

0 commit comments

Comments
 (0)