diff options
author | Michael I. Bushnell <mib@gnu.org> | 1995-06-14 20:29:16 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1995-06-14 20:29:16 +0000 |
commit | 9064fd8d1ff4300d986057ba75dc4a87cd7b7ab0 (patch) | |
tree | 296f84c169dd6dd0b9f7ab6e455db52f1e584411 | |
parent | 5bd18d37d60336a4c7e704e462a6357efb3c38a8 (diff) |
foo
-rw-r--r-- | libdiskfs/trans-callback.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/libdiskfs/trans-callback.c b/libdiskfs/trans-callback.c index d5c4d0d6..703b4009 100644 --- a/libdiskfs/trans-callback.c +++ b/libdiskfs/trans-callback.c @@ -30,10 +30,15 @@ _diskfs_translator_callback_fn (void *cookie1, void *cookie2, { struct node *np = cookie1; mach_port_t *dotdot = cookie2; + error_t err; if (!np->istranslated) return ENOENT; + err = diskfs_get_translator (np, argz, (u_int *) argz_len); + if (err) + return err; + *uid = np->dn_stat.st_owner; *gid = np->dn_stat.st_group; @@ -46,9 +51,8 @@ _diskfs_translator_callback_fn (void *cookie1, void *cookie2, uid, 1, gid, 1))); mach_port_insert_right (mach_task_mself (), *underlying, *underlying, MACH_MSG_TYPE_MAKE_SEND); - - return diskfs_get_translator (np, argz, (u_int *) argz_len); + return 0; } - +fshelp_callback_t _diskfs_translator_callback = _diskfs_translator_callback_fn; |