summaryrefslogtreecommitdiff
path: root/trans/fakeroot.c
diff options
context:
space:
mode:
Diffstat (limited to 'trans/fakeroot.c')
-rw-r--r--trans/fakeroot.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/trans/fakeroot.c b/trans/fakeroot.c
index 6e3b5d4b..bee018e2 100644
--- a/trans/fakeroot.c
+++ b/trans/fakeroot.c
@@ -276,14 +276,21 @@ netfs_S_dir_lookup (struct protid *diruser,
break;
case FS_RETRY_MAGICAL:
- default:
if (file == MACH_PORT_NULL)
{
*retry_port = MACH_PORT_NULL;
*retry_port_type = MACH_MSG_TYPE_COPY_SEND;
return 0;
}
- break;
+ /* Fallthrough. */
+
+ default:
+ /* Invalid response to our dir_lookup request. */
+ if (file != MACH_PORT_NULL)
+ mach_port_deallocate (mach_task_self (), file);
+ *retry_port = MACH_PORT_NULL;
+ *retry_port_type = MACH_MSG_TYPE_COPY_SEND;
+ return EOPNOTSUPP;
}
/* We have a new port to an underlying node.