aboutsummaryrefslogtreecommitdiff
path: root/src/fs/ramfs
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi92@disroot.org>2025-11-12 00:37:26 +0100
committerXavier Del Campo Romero <xavi92@disroot.org>2025-11-16 22:57:45 +0100
commit2ce58c995946f85666e793c4f06efff683e76ae4 (patch)
treefbf2658bb0b0f61dadcf4ca27f997eaded78aae5 /src/fs/ramfs
parent5ce25ae3b5d8666d373f7d7e336546ce8508c213 (diff)
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;