summaryrefslogtreecommitdiff
path: root/Kernel/Syscalls/lseek.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel/Syscalls/lseek.cpp')
-rw-r--r--Kernel/Syscalls/lseek.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Syscalls/lseek.cpp b/Kernel/Syscalls/lseek.cpp
index e2ed624f80..2422dce950 100644
--- a/Kernel/Syscalls/lseek.cpp
+++ b/Kernel/Syscalls/lseek.cpp
@@ -13,7 +13,7 @@ ErrorOr<FlatPtr> Process::sys$lseek(int fd, Userspace<off_t*> userspace_offset,
{
VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this)
TRY(require_promise(Pledge::stdio));
- auto description = TRY(fds().open_file_description(fd));
+ auto description = TRY(open_file_description(fd));
off_t offset;
TRY(copy_from_user(&offset, userspace_offset));
auto seek_result = TRY(description->seek(offset, whence));