When checking flags that will be passed to open(), test the O_ACCMODE portion
authorguenther <guenther@openbsd.org>
Mon, 11 May 2015 00:42:54 +0000 (00:42 +0000)
committerguenther <guenther@openbsd.org>
Mon, 11 May 2015 00:42:54 +0000 (00:42 +0000)
commitdc519336cc6495b5a61e8b6564dc5dc717ce145a
tree7566cb6538c290b5609f5f24676148488439fbf2
parentb7b44fe5796e416f560eb15867dc757db11a47d6
When checking flags that will be passed to open(), test the O_ACCMODE portion
separately to avoid false negatives.

ok miod@ millert@
lib/libc/db/db/db.c
lib/libc/gen/shm_open.c
lib/libc/stdlib/posix_pty.c
lib/libkvm/kvm.c