From 94de27efb7f9f97d162c1cd6b0a2bb89e3fe555f Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Fri, 21 Aug 2020 23:08:16 +0200 Subject: Finished proper return of processes --- kernel/features/fs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kernel/features/fs.c') diff --git a/kernel/features/fs.c b/kernel/features/fs.c index 3c1b849..c328f04 100644 --- a/kernel/features/fs.c +++ b/kernel/features/fs.c @@ -116,7 +116,7 @@ void *read_file(char *path) } u32 inode = find_inode(path, current_inode); - if (inode == 0) + if ((signed)inode <= 0) return 0; return read_inode(get_inode(inode)); -- cgit v1.2.3