From 37f9faea8ded29aa414bfd251c4d43cb3219835a Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sat, 26 May 2001 18:17:18 +0000 Subject: 2001-05-26 Roland McGrath * users.c (trivfs_S_io_select): Don't diagnose an error for *TYPE containing irrelevant bits (i.e. SELECT_URG). It's always ok to ask even when the answer is always no. --- term/users.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/term/users.c b/term/users.c index 1265b2fe..9d103013 100644 --- a/term/users.c +++ b/term/users.c @@ -1,5 +1,5 @@ /* - Copyright (C) 1995,96,97,98,99,2000 Free Software Foundation, Inc. + Copyright (C) 1995,96,97,98,99,2000,01 Free Software Foundation, Inc. Written by Michael I. Bushnell, p/BSG. This file is part of the GNU Hurd. @@ -2009,8 +2009,7 @@ trivfs_S_io_select (struct trivfs_protid *cred, return pty_io_select (cred, reply, type, idtag); /* We don't deal with SELECT_URG here. */ - if (*type & ~(SELECT_READ | SELECT_WRITE)) - return EINVAL; + *type &= (SELECT_READ | SELECT_WRITE); available = 0; if (*type == 0) -- cgit v1.2.3