Don't flag an error when doing ioctl() on a mux without any
multiplexees. Should fix PR 8723.
This commit is contained in:
parent
bc82bff1dc
commit
1e460723a5
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: wsmux.c,v 1.6 1999/08/26 06:37:42 nisimura Exp $ */
|
||||
/* $NetBSD: wsmux.c,v 1.7 1999/11/03 22:48:38 augustss Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
|
@ -610,7 +610,7 @@ wsmuxdoioctl(dv, cmd, data, flag, p)
|
|||
return (EACCES);
|
||||
|
||||
/* Return 0 if any of the ioctl() succeeds, otherwise the last error */
|
||||
error = -1;
|
||||
error = 0;
|
||||
ok = 0;
|
||||
for (m = LIST_FIRST(&sc->sc_reals); m; m = LIST_NEXT(m, next)) {
|
||||
DPRINTF(("wsmuxdoioctl: m=%p *m->sc_muxp=%p sc=%p\n",
|
||||
|
@ -652,7 +652,7 @@ wsmux_displayioctl(dv, cmd, data, flag, p)
|
|||
#endif
|
||||
|
||||
/* Return 0 if any of the ioctl() succeeds, otherwise the last error */
|
||||
error = -1;
|
||||
error = 0;
|
||||
ok = 0;
|
||||
for (m = LIST_FIRST(&sc->sc_reals); m; m = LIST_NEXT(m, next)) {
|
||||
DPRINTF(("wsmux_displayioctl: m=%p sc=%p sc_muxp=%p\n",
|
||||
|
|
Loading…
Reference in New Issue