summaryrefslogtreecommitdiff
path: root/exec/main.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2000-03-20 18:14:14 +0000
committerRoland McGrath <roland@gnu.org>2000-03-20 18:14:14 +0000
commitf1b28539b34ae85f8a526c54249b31e083e4ad3a (patch)
tree92890194de82ffb1e2ad7666be7201ffa19b749c /exec/main.c
parenta0e3e8a1cbc4d06722a6b7c9f71f3a61166191c2 (diff)
2000-03-20 Roland McGrath <roland@baalperazim.frob.com>
* main.c (trivfs_allow_open): Initialize to zero. (trivfs_support_read, trivfs_support_write): Likewise. (trivfs_support_exec): Variable removed.
Diffstat (limited to 'exec/main.c')
-rw-r--r--exec/main.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/exec/main.c b/exec/main.c
index d366d960..7bf3305d 100644
--- a/exec/main.c
+++ b/exec/main.c
@@ -39,10 +39,9 @@ extern error_t bfd_mach_host_arch_mach (host_t host,
/* Trivfs hooks. */
int trivfs_fstype = FSTYPE_MISC;
int trivfs_fsid = 0;
-int trivfs_support_read = 1;
-int trivfs_support_write = 1;
-int trivfs_support_exec = 1;
-int trivfs_allow_open = O_READ|O_WRITE|O_EXEC;
+int trivfs_support_read = 0;
+int trivfs_support_write = 0;
+int trivfs_allow_open = 0;
struct port_class *trivfs_protid_portclasses[1];
struct port_class *trivfs_cntl_portclasses[1];
@@ -229,7 +228,7 @@ S_exec_init (struct trivfs_protid *protid,
{
struct trivfs_protid *cred;
mach_port_t right;
-
+
err = trivfs_open (fsys,
iohelp_create_iouser (make_idvec (), make_idvec ()),
0, MACH_PORT_NULL, &cred);