Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/sys/dev/usb/uhid.c,v rcsdiff: /ftp/cvs/cvsroot/src/sys/dev/usb/uhid.c,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.59 retrieving revision 1.60 diff -u -p -r1.59 -r1.60 --- src/sys/dev/usb/uhid.c 2003/06/29 22:30:57 1.59 +++ src/sys/dev/usb/uhid.c 2003/09/21 19:16:58 1.60 @@ -1,4 +1,4 @@ -/* $NetBSD: uhid.c,v 1.59 2003/06/29 22:30:57 fvdl Exp $ */ +/* $NetBSD: uhid.c,v 1.60 2003/09/21 19:16:58 jdolecek Exp $ */ /* * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -42,7 +42,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: uhid.c,v 1.59 2003/06/29 22:30:57 fvdl Exp $"); +__KERNEL_RCSID(0, "$NetBSD: uhid.c,v 1.60 2003/09/21 19:16:58 jdolecek Exp $"); #include #include @@ -449,6 +449,14 @@ uhid_do_ioctl(struct uhid_softc *sc, u_l return (EPERM); break; + case FIOSETOWN: + if (sc->sc_async == NULL) + return (EINVAL); + if (-*(int *)addr != sc->sc_async->p_pgid + && *(int *)addr != sc->sc_async->p_pid); + return (EPERM); + break; + case USB_GET_REPORT_DESC: uhidev_get_report_desc(sc->sc_hdev.sc_parent, &desc, &size); rd = (struct usb_ctl_report_desc *)addr;