summaryrefslogtreecommitdiff
path: root/libdiskfs
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1997-02-06 08:43:35 +0000
committerMiles Bader <miles@gnu.org>1997-02-06 08:43:35 +0000
commit91163ecd1b54de27beb2316543bf5615f4d3bc2e (patch)
treefa0cdc01be39739551ad37c792b2468dff26f7ae /libdiskfs
parentadc4ee76d15aa4ad3205b7a75d8e39c4e8ead89f (diff)
(_diskfs_translator_callback2_fn):
Expect COOKIE2 to be a pointer to a struct diskfs_trans_callback_cookie2, and use that to pass args to diskfs_make_peropen.
Diffstat (limited to 'libdiskfs')
-rw-r--r--libdiskfs/trans-callback.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libdiskfs/trans-callback.c b/libdiskfs/trans-callback.c
index e3ffcce7..57596950 100644
--- a/libdiskfs/trans-callback.c
+++ b/libdiskfs/trans-callback.c
@@ -1,5 +1,5 @@
/*
- Copyright (C) 1995, 1996 Free Software Foundation, Inc.
+ Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
Written by Michael I. Bushnell.
This file is part of the GNU Hurd.
@@ -53,7 +53,7 @@ _diskfs_translator_callback2_fn (void *cookie1, void *cookie2,
mach_msg_type_name_t *underlying_type)
{
struct node *np = cookie1;
- mach_port_t *dotdot = cookie2;
+ struct diskfs_trans_callback_cookie2 *c2 = cookie2;
struct protid *cred;
error_t err;
struct idvec *uids, *gids;
@@ -64,7 +64,8 @@ _diskfs_translator_callback2_fn (void *cookie1, void *cookie2,
idvec_set_ids (gids, &np->dn_stat.st_gid, 1);
err =
- diskfs_create_protid (diskfs_make_peropen (np, flags, *dotdot),
+ diskfs_create_protid (diskfs_make_peropen (np, flags,
+ c2->dotdot, c2->depth),
iohelp_create_iouser (uids, gids), &cred);
if (! err)
{