summaryrefslogtreecommitdiff
path: root/Kernel/Syscalls/utime.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel/Syscalls/utime.cpp')
-rw-r--r--Kernel/Syscalls/utime.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/Kernel/Syscalls/utime.cpp b/Kernel/Syscalls/utime.cpp
index f10b00ad5b..a189efe682 100644
--- a/Kernel/Syscalls/utime.cpp
+++ b/Kernel/Syscalls/utime.cpp
@@ -10,7 +10,7 @@
namespace Kernel {
-KResultOr<FlatPtr> Process::sys$utime(Userspace<const char*> user_path, size_t path_length, Userspace<const struct utimbuf*> user_buf)
+ErrorOr<FlatPtr> Process::sys$utime(Userspace<const char*> user_path, size_t path_length, Userspace<const struct utimbuf*> user_buf)
{
VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this)
REQUIRE_PROMISE(fattr);
@@ -23,7 +23,8 @@ KResultOr<FlatPtr> Process::sys$utime(Userspace<const char*> user_path, size_t p
// Not a bug!
buf = { now, now };
}
- return VirtualFileSystem::the().utime(path->view(), current_directory(), buf.actime, buf.modtime);
+ TRY(VirtualFileSystem::the().utime(path->view(), current_directory(), buf.actime, buf.modtime));
+ return 0;
}
}