From 8f95970e61d7d6b2041186a16fd60aea062b0924 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Mon, 13 May 2002 22:33:06 +0000 Subject: 2002-05-13 Roland McGrath * leaf.c (create_user_node): Set NEW->nn_translated appropriately. * usermux.c (main): Set netfs_root_node->nn_translated to zero. --- usermux/leaf.c | 5 +++-- usermux/usermux.c | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'usermux') 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 + Copyright (C) 1997,2002 Free Software Foundation, Inc. + Written by Miles Bader 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 (); } -- cgit v1.2.3