From b45568005e6b67d35caa0f03f7d54180b82a7a6f Mon Sep 17 00:00:00 2001 From: Zheng Da Date: Tue, 4 May 2010 15:42:03 +0200 Subject: make devnode readable and writable. --- devnode/devnode.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'devnode/devnode.c') 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 #include #include +#include #include #include @@ -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]; -- cgit v1.2.3