summaryrefslogtreecommitdiff
path: root/usermux
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-05-13 22:33:06 +0000
committerRoland McGrath <roland@gnu.org>2002-05-13 22:33:06 +0000
commit8f95970e61d7d6b2041186a16fd60aea062b0924 (patch)
tree4052f0757fb1f03c0fb92785c129b3a83cbf1087 /usermux
parent0246ed28b5beaac2f614ed3780501d684476f75b (diff)
2002-05-13 Roland McGrath <roland@frob.com>
* leaf.c (create_user_node): Set NEW->nn_translated appropriately. * usermux.c (main): Set netfs_root_node->nn_translated to zero.
Diffstat (limited to 'usermux')
-rw-r--r--usermux/leaf.c5
-rw-r--r--usermux/usermux.c5
2 files changed, 6 insertions, 4 deletions
diff --git a/usermux/leaf.c b/usermux/leaf.c
index bacaee9d..7f41b187 100644
--- a/usermux/leaf.c
+++ b/usermux/leaf.c
@@ -1,7 +1,7 @@
/* Usermux leaf node functions
- Copyright (C) 1997 Free Software Foundation, Inc.
- Written by Miles Bader <miles@gnu.ai.mit.edu>
+ Copyright (C) 1997,2002 Free Software Foundation, Inc.
+ Written by Miles Bader <miles@gnu.org>
This file is part of the GNU Hurd.
The GNU Hurd is free software; you can redistribute it and/or
@@ -133,6 +133,7 @@ create_user_node (struct usermux *mux, struct usermux_name *name,
new->nn_stat.st_mode = (S_IFREG | S_IPTRANS | 0666);
new->nn_stat.st_size = 0;
}
+ new->nn_translated = new->nn_stat.st_mode;
if (err)
{
diff --git a/usermux/usermux.c b/usermux/usermux.c
index 209a868b..fad923c9 100644
--- a/usermux/usermux.c
+++ b/usermux/usermux.c
@@ -104,7 +104,7 @@ main (int argc, char **argv)
/* Parse our command line arguments. */
argp_parse (&argp, argc, argv, 0, 0, 0);
-
+
task_get_bootstrap_port (mach_task_self (), &bootstrap);
netfs_init ();
@@ -146,10 +146,11 @@ main (int argc, char **argv)
netfs_root_node->nn_stat.st_ino = 2;
netfs_root_node->nn_stat.st_mode =
S_IFDIR | (ul_stat.st_mode & ~S_IFMT & ~S_ITRANS);
+ netfs_root_node->nn_translated = 0;
fshelp_touch (&netfs_root_node->nn_stat, TOUCH_ATIME|TOUCH_MTIME|TOUCH_CTIME,
usermux_maptime);
-
+
for (;;) /* ?? */
netfs_server_loop ();
}