diff options
author | dzwdz | 2024-02-23 22:06:12 +0100 |
---|---|---|
committer | dzwdz | 2024-02-23 22:06:12 +0100 |
commit | 8db20f6329a1417ef3f636ba82681a5764a757ab (patch) | |
tree | 8fe20f813abb74908a8148dcff1dbb0b7d77a1b0 /src/kernel/vfs | |
parent | df889665b915d432e0205fad9cd8ccba609661c1 (diff) |
kernel: knock off some simple vfsreq TODOs
Diffstat (limited to 'src/kernel/vfs')
-rw-r--r-- | src/kernel/vfs/request.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/kernel/vfs/request.c b/src/kernel/vfs/request.c index 5723201..3a42c2a 100644 --- a/src/kernel/vfs/request.c +++ b/src/kernel/vfs/request.c @@ -60,7 +60,8 @@ void vfsreq_finish(VfsReq *req, char __user *stored, long ret, /* delegating - moving a handle to the caller */ assert(handler); h = proc_hid_take(handler, ret); - // TODO don't ignore OPEN_RO + h->readable = h->readable && OPEN_READABLE(req->flags); + h->writeable = h->writeable && OPEN_WRITEABLE(req->flags); } if (h) { |