From 7b466345af0d3a7dc5622617ce443a90c64e34a4 Mon Sep 17 00:00:00 2001 From: Alex AUVOLAT Date: Sat, 19 May 2012 09:23:48 +0200 Subject: Added ANSI support, minimal readline-like library. --- src/kernel/vfs/node.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/kernel/vfs') diff --git a/src/kernel/vfs/node.cpp b/src/kernel/vfs/node.cpp index c517aae..0b753af 100644 --- a/src/kernel/vfs/node.cpp +++ b/src/kernel/vfs/node.cpp @@ -54,6 +54,7 @@ node* vfs_find(node* root, char* fn) { } node* vfs_read_fd(FILE d) { + if (d < 0) return 0; return current_process->fd.at(d); } -- cgit v1.2.3