aboutsummaryrefslogtreecommitdiff
path: root/kernel/features/fs.c
diff options
context:
space:
mode:
authorMarvin Borner2020-08-21 23:08:16 +0200
committerMarvin Borner2020-08-21 23:08:16 +0200
commit94de27efb7f9f97d162c1cd6b0a2bb89e3fe555f (patch)
treeb2ae93419138cd0af46559b0b1f1a03862d62242 /kernel/features/fs.c
parentf700ba6668dbdb91a03b2c5aa387eb4cabae8fcd (diff)
Finished proper return of processes
Diffstat (limited to 'kernel/features/fs.c')
-rw-r--r--kernel/features/fs.c2
1 files changed, 1 insertions, 1 deletions
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));