From 56dd578d7e715fd255c668577162ede65c7e909f Mon Sep 17 00:00:00 2001 From: Masaki Matsushita Date: Sat, 29 Aug 2020 16:10:58 +0900 Subject: IO.copy_stream: handle EOPNOTSUP instead of ENOTSUP --- io.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'io.c') diff --git a/io.c b/io.c index 3b3ce3ff82..1b9a68ab8d 100644 --- a/io.c +++ b/io.c @@ -11312,10 +11312,10 @@ nogvl_copy_stream_sendfile(struct copy_stream_struct *stp) #ifdef ENOSYS case ENOSYS: #endif -#ifdef ENOTSUP - /* some RedHat kernels may return ENOTSUP on an NFS mount. +#ifdef EOPNOTSUP + /* some RedHat kernels may return EOPNOTSUP on an NFS mount. see also: [Feature #16965] */ - case ENOTSUP: + case EOPNOTSUP: #endif return 0; case EAGAIN: -- cgit v1.2.3