cap: Fix openmode issue
authorBarret Rhoden <brho@cs.berkeley.edu>
Fri, 27 Jan 2017 21:14:00 +0000 (16:14 -0500)
committerBarret Rhoden <brho@cs.berkeley.edu>
Wed, 8 Feb 2017 21:36:32 +0000 (16:36 -0500)
commitdf6749aeae40b55b595bb84fc80fc5ccc23d6bdf
treec2a581f96469269f22d04e94c0155692517adb8b
parentff0460391a847480ad392631bb1706019491dbb1
cap: Fix openmode issue

You couldn't ls \#capability.  Plan 9 had a bunch of different rules about
omode than we have.  Incidentally, O_READ is not 0.  And O_RDONLY isn't a
good check - it's just there for compatibility.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/drivers/dev/capability.c