From a9dae4d97b82b35ba3e03960255b605b260d1208 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Mon, 28 Nov 2011 11:20:12 +0100 Subject: Fix select on pfinet tunnel and streamio * pfinet/tunnel.c (trivfs_S_io_select): Do not return EINVAL on SELECT_URG. * trans/streamio.c (trivfs_S_io_select): Likewise. --- trans/streamio.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'trans/streamio.c') diff --git a/trans/streamio.c b/trans/streamio.c index 0faa8a3e..c563c03c 100644 --- a/trans/streamio.c +++ b/trans/streamio.c @@ -554,8 +554,7 @@ trivfs_S_io_select (struct trivfs_protid *cred, if (!(cred->po->openmodes & O_WRITE) && (*type & SELECT_WRITE)) return EBADF; - if (*type & ~(SELECT_READ | SELECT_WRITE)) - return EINVAL; + *type &= SELECT_READ | SELECT_WRITE; if (*type == 0) return 0; -- cgit v1.2.3