diff options
author | Zheng Da <zhengda1936@gmail.com> | 2010-05-04 15:42:03 +0200 |
---|---|---|
committer | Zheng Da <zhengda1936@gmail.com> | 2010-05-04 15:42:03 +0200 |
commit | b45568005e6b67d35caa0f03f7d54180b82a7a6f (patch) | |
tree | 0c4745d24b050171d532f6ddfc9498bf26d0ca6d /devnode/devnode.c | |
parent | 589e5402f5e90286019e33f11cdc00429f01cca8 (diff) |
make devnode readable and writable.
Diffstat (limited to 'devnode/devnode.c')
-rw-r--r-- | devnode/devnode.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/devnode/devnode.c b/devnode/devnode.c index 7abf2bf8..55fd8d92 100644 --- a/devnode/devnode.c +++ b/devnode/devnode.c @@ -27,6 +27,7 @@ #include <errno.h> #include <error.h> #include <stddef.h> +#include <fcntl.h> #include <hurd.h> #include <mach.h> @@ -67,7 +68,7 @@ int trivfs_fsid = 0; int trivfs_support_read = 0; int trivfs_support_write = 0; int trivfs_support_exec = 0; -int trivfs_allow_open = 0; +int trivfs_allow_open = O_READ | O_WRITE; struct port_class *trivfs_protid_portclasses[1]; struct port_class *trivfs_cntl_portclasses[1]; |