diff options
Diffstat (limited to 'src/sys/os')
-rw-r--r-- | src/sys/os/os_null.c | 2 | ||||
-rw-r--r-- | src/sys/os/vfs_namei.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/sys/os/os_null.c b/src/sys/os/os_null.c index e142c6f..ae0fcf4 100644 --- a/src/sys/os/os_null.c +++ b/src/sys/os/os_null.c @@ -41,7 +41,7 @@ static ssize_t null_read(struct devfs_node *dnp, struct dev_iobuf *io, int flags) { /* We give you a whole lot of nothing! */ - return io->count; + return 0; } /* diff --git a/src/sys/os/vfs_namei.c b/src/sys/os/vfs_namei.c index 7814181..013c0ea 100644 --- a/src/sys/os/vfs_namei.c +++ b/src/sys/os/vfs_namei.c @@ -114,6 +114,8 @@ namei(struct nameidata *ndp) if (error == 0) { return 0; } + + return -ENOENT; } |