1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

IO.copy_stream: handle EOPNOTSUP instead of ENOTSUP

This commit is contained in:
Masaki Matsushita 2020-08-29 16:10:58 +09:00
parent 93df301048
commit 56dd578d7e

6
io.c
View file

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