summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libdiskfs/file-get-transcntl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libdiskfs/file-get-transcntl.c b/libdiskfs/file-get-transcntl.c
index 7600dd9d..187cbc6f 100644
--- a/libdiskfs/file-get-transcntl.c
+++ b/libdiskfs/file-get-transcntl.c
@@ -31,13 +31,13 @@ diskfs_S_file_get_translator_cntl (struct protid *cred,
np = cred->po->np;
- if (!np->translator)
+ if (np->translator.control == MACH_PORT_NULL)
error = ENXIO;
else
- error = isowner (np, cred);
+ error = diskfs_isowner (np, cred);
if (!error)
- *ctl = np->translator;
+ *ctl = np->translator.control;
diskfs_nput (np);
return error;