1.1 --- a/libfsserver/lib/directories/directory_resource.cc Sat Feb 25 18:10:13 2023 +0100
1.2 +++ b/libfsserver/lib/directories/directory_resource.cc Sat Feb 25 22:11:08 2023 +0100
1.3 @@ -1,7 +1,7 @@
1.4 /*
1.5 * A resource offering support for accessing directories.
1.6 *
1.7 - * Copyright (C) 2021, 2022 Paul Boddie <paul@boddie.org.uk>
1.8 + * Copyright (C) 2021, 2022, 2023 Paul Boddie <paul@boddie.org.uk>
1.9 *
1.10 * This program is free software; you can redistribute it and/or
1.11 * modify it under the terms of the GNU General Public License as
1.12 @@ -125,14 +125,15 @@
1.13
1.14 long DirectoryResource::subscribe(l4_cap_idx_t notifier, notify_flags_t flags)
1.15 {
1.16 - return _provider->subscribe(notifier, flags, this, &_endpoint);
1.17 + _notifier = notifier;
1.18 + return _provider->subscribe(notifier, flags);
1.19 }
1.20
1.21 /* Unsubscribe from notifications. */
1.22
1.23 long DirectoryResource::unsubscribe()
1.24 {
1.25 - _provider->unsubscribe(_endpoint, this);
1.26 + _provider->unsubscribe(_notifier);
1.27 return L4_EOK;
1.28 }
1.29