diff options
Diffstat (limited to 'hostmux')
-rw-r--r-- | hostmux/hostmux.c | 5 | ||||
-rw-r--r-- | hostmux/leaf.c | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/hostmux/hostmux.c b/hostmux/hostmux.c index b0a72693..3778613c 100644 --- a/hostmux/hostmux.c +++ b/hostmux/hostmux.c @@ -112,7 +112,7 @@ main (int argc, char **argv) /* Parse our command line arguments. */ argp_parse (&argp, argc, argv, ARGP_IN_ORDER, 0, 0); - + task_get_bootstrap_port (mach_task_self (), &bootstrap); netfs_init (); @@ -147,6 +147,7 @@ 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; /* If the underlying node isn't a directory, propagate read permission to execute permission since we need that for lookups. */ @@ -162,7 +163,7 @@ main (int argc, char **argv) fshelp_touch (&netfs_root_node->nn_stat, TOUCH_ATIME|TOUCH_MTIME|TOUCH_CTIME, hostmux_maptime); - + for (;;) /* ?? */ netfs_server_loop (); } diff --git a/hostmux/leaf.c b/hostmux/leaf.c index 8e107f60..aba32b84 100644 --- a/hostmux/leaf.c +++ b/hostmux/leaf.c @@ -1,7 +1,7 @@ /* Hostmux 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 @@ -111,6 +111,7 @@ create_host_node (struct hostmux *mux, struct hostmux_name *name, new->nn_stat.st_mode = (S_IFLNK | 0666); new->nn_stat.st_size = strlen (name->canon); } + new->nn_translated = new->nn_stat.st_mode; fshelp_touch (&new->nn_stat, TOUCH_ATIME|TOUCH_MTIME|TOUCH_CTIME, hostmux_maptime); |