From e83dca9817614d0dc77ce1e5dc13eed44b61eb2f Mon Sep 17 00:00:00 2001 From: dzwdz Date: Tue, 4 Oct 2022 13:59:21 +0200 Subject: user/libc: camellia_open, takes cwd into account --- src/user/app/shell/builtins.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/user/app/shell/builtins.c') diff --git a/src/user/app/shell/builtins.c b/src/user/app/shell/builtins.c index a23e501..6368633 100644 --- a/src/user/app/shell/builtins.c +++ b/src/user/app/shell/builtins.c @@ -1,6 +1,6 @@ #include "builtins.h" #include "shell.h" -#include +#include #include #include #include @@ -61,7 +61,7 @@ void cmd_getsize(int argc, char **argv) { } for (int i = 1; i < argc; i++) { - handle_t h = _syscall_open(argv[i], strlen(argv[i]), OPEN_READ); + handle_t h = camellia_open(argv[i], OPEN_READ); if (h < 0) { eprintf("error opening %s", argv[i]); continue; -- cgit v1.2.3