summaryrefslogtreecommitdiff
path: root/devnode/devnode.c
diff options
context:
space:
mode:
authorZheng Da <zhengda1936@gmail.com>2010-05-04 15:42:03 +0200
committerZheng Da <zhengda1936@gmail.com>2010-05-04 15:42:03 +0200
commitb45568005e6b67d35caa0f03f7d54180b82a7a6f (patch)
tree0c4745d24b050171d532f6ddfc9498bf26d0ca6d /devnode/devnode.c
parent589e5402f5e90286019e33f11cdc00429f01cca8 (diff)
make devnode readable and writable.
Diffstat (limited to 'devnode/devnode.c')
-rw-r--r--devnode/devnode.c3
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];