From e2075e56f875e077cd5c3d6e3c85368c1087654f Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sun, 22 Aug 2021 15:59:04 +0200 Subject: fs_open() accepts a signed length, fixes an infinite loop it occureed if the path_simplify returned a negative value - instead of being interpreter as an error it just carried on, ending up in an infinite loop. --- src/kernel/syscalls.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/kernel/syscalls.h') diff --git a/src/kernel/syscalls.h b/src/kernel/syscalls.h index c8dca05..f3e8dc0 100644 --- a/src/kernel/syscalls.h +++ b/src/kernel/syscalls.h @@ -33,7 +33,7 @@ int _syscall_await(char *buf, int len); */ int _syscall_fork(); -fd_t _syscall_fs_open(const char *path, size_t len); +fd_t _syscall_fs_open(const char *path, int len); int _syscall_mount(const char *path, int len, fd_t fd); /** Prints a message to the debug console. -- cgit v1.2.3