diff options
-rw-r--r-- | trans/fakeroot.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/trans/fakeroot.c b/trans/fakeroot.c index 0e0b618a..3dce22e8 100644 --- a/trans/fakeroot.c +++ b/trans/fakeroot.c @@ -287,6 +287,8 @@ netfs_S_dir_lookup (struct protid *diruser, err = dir_lookup (dir, filename, flags & (O_NOLINK|O_RDWR|O_EXEC|O_CREAT|O_EXCL|O_NONBLOCK), mode, do_retry, retry_name, &file); + if (dir != dnp->nn->file) + mach_port_deallocate (mach_task_self (), dir); if (err) return err; |