Fixes #K open
authorBarret Rhoden <brho@cs.berkeley.edu>
Mon, 29 Sep 2014 04:27:42 +0000 (21:27 -0700)
committerBarret Rhoden <brho@cs.berkeley.edu>
Mon, 29 Sep 2014 04:27:42 +0000 (21:27 -0700)
commit73aedbc25c65403d675890108aa5c33423e46d7b
treee28701febbf8b014a4772518b62af0c1fb8dc7fa
parent98726ed81249b30bcbe10ee19e9e56bd73abebe8
Fixes #K open

You need to process omode with openmode() before doing an equality check
with OREAD/O_RDONLY (which == 0, btw...).

This was breaking the ability to bind #K or bind -b.  bind -a worked.
Similarly, ls \#K failed, but cat \#K worked.  The ls-cat check is the
usual way to detect this stuff (it's come up before).
kern/drivers/dev/kprof.c