aboutsummaryrefslogtreecommitdiff
path: root/src/fs/ramfs
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/ramfs')
-rw-r--r--src/fs/ramfs/src/search.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/fs/ramfs/src/search.c b/src/fs/ramfs/src/search.c
index 24e2a98..076603d 100644
--- a/src/fs/ramfs/src/search.c
+++ b/src/fs/ramfs/src/search.c
@@ -20,6 +20,7 @@
#include <ramfs/types.h>
#include <fs/fs.h>
#include <state.h>
+#include <errno.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
@@ -76,7 +77,10 @@ static int find_node(const char *const path, struct inode **const out,
}
if (!found)
+ {
+ errno = ENOENT;
goto end;
+ }
}
ret = 0;