diff options
-rw-r--r-- | usermux/leaf.c | 5 | ||||
-rw-r--r-- | usermux/usermux.c | 5 |
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 (); } |