diff options
author | Zheng Da <zhengda1936@gmail.com> | 2010-05-19 13:33:29 +0200 |
---|---|---|
committer | Zheng Da <zhengda1936@gmail.com> | 2010-05-19 13:33:29 +0200 |
commit | 4fc0eb5c612281074bd1ba55a4d6d32041ee7a6e (patch) | |
tree | a234c237dff965b4c8a45d248f8b142706829a9c /devnode/devnode.c | |
parent | 3b52d15454648a6ec01bd595cc58c52bb1457ad0 (diff) |
Revert "make devnode open for reading and writing."
This reverts commit e0571ec558b13cbf400f2a0c55787238fcf3d858.
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]; |