summaryrefslogtreecommitdiff
path: root/trans
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-07-21 19:20:56 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-07-21 19:20:56 +0000
commit9ea45b11e11efa643b10ab60b9a417025f0351d5 (patch)
treeab741a32f07199b26750007351af5064a1f51963 /trans
parent4b3bbd7c86e46abc56a648c29c5fbde5739a66dc (diff)
Formerly symlink.c.~2~
Diffstat (limited to 'trans')
-rw-r--r--trans/symlink.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/trans/symlink.c b/trans/symlink.c
index 25fa16cf..791befe7 100644
--- a/trans/symlink.c
+++ b/trans/symlink.c
@@ -15,7 +15,7 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
-mach_port_t realnode, dotdotnode;
+mach_port_t realnode;
/* We return this for O_NOLINK lookups */
mach_port_t realnodenoauth;
@@ -48,7 +48,7 @@ main (int argc, char **argv)
/* Reply to our parent */
control = ports_allocate_port (PT_CTL, sizeof (struct port_info));
error = fsys_startup (bootstrap, ports_get_right (control),
- MACH_MSG_TYPE_MAKE_SEND, &realnode, &dotdotnode);
+ MACH_MSG_TYPE_MAKE_SEND, &realnode);
io_restrict_auth (realnode, &realnodenoauth, 0, 0, 0, 0);
@@ -57,8 +57,8 @@ main (int argc, char **argv)
return 0;
}
-
S_fsys_getroot (mach_port_t fsys_t,
+ mach_port_t dotdotnode,
uid_t *uids,
u_int nuids,
uid_t *gids,
@@ -84,7 +84,7 @@ S_fsys_getroot (mach_port_t fsys_t,
strcpy (retry_name, linktarget);
if (linktarget[0] == '/')
{
- *do_retry = FS_RETRY_NORMAL;
+ *do_retry = FS_RETRY_MAGICAL;
*ret = MACH_PORT_NULL;
*rettype = MACH_MSG_TYPE_COPY_SEND;
}
@@ -92,7 +92,7 @@ S_fsys_getroot (mach_port_t fsys_t,
{
*do_retry = FS_RETRY_REAUTH;
*ret = dotdotnode;
- *rettype = MACH_MSG_TYPE_COPY_SEND;
+ *rettype = MACH_MSG_TYPE_MOVE_SEND;
}
}
return 0;