1.1 --- a/libfsserver/lib/directories/directory_resource.cc Fri Feb 25 18:45:11 2022 +0100
1.2 +++ b/libfsserver/lib/directories/directory_resource.cc Wed Mar 02 19:39:28 2022 +0100
1.3 @@ -100,7 +100,7 @@
1.4 return err;
1.5
1.6 *size = reader->size;
1.7 - *file = reader->ref;
1.8 + *file = discard_cap(reader->ref);
1.9 *object_flags = 0; /* does not support mmap, has no fixed size */
1.10
1.11 /* Discard the reader structure but preserve the capability. */
1.12 @@ -119,10 +119,7 @@
1.13
1.14 /* Send the capability immediately, discarding it afterwards. */
1.15
1.16 - complete_Directory_opendir(*size, *file, *object_flags);
1.17 - ipc_cap_free_um(*file);
1.18 -
1.19 - return IPC_MESSAGE_SENT;
1.20 + return L4_EOK;
1.21 }
1.22
1.23