lib: fs: fix incorrect status code in fs_msg_open
This commit is contained in:
@@ -4,6 +4,8 @@
|
|||||||
#include <fs/context.h>
|
#include <fs/context.h>
|
||||||
#include <fs/file.h>
|
#include <fs/file.h>
|
||||||
#include <fs/status.h>
|
#include <fs/status.h>
|
||||||
|
#include <mango/log.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
extern kern_status_t fs_msg_open(
|
extern kern_status_t fs_msg_open(
|
||||||
xpc_context_t *xpc,
|
xpc_context_t *xpc,
|
||||||
@@ -39,7 +41,7 @@ extern kern_status_t fs_msg_open(
|
|||||||
= fs_context_resolve_path(ctx, path_buf, &dent);
|
= fs_context_resolve_path(ctx, path_buf, &dent);
|
||||||
if (fs_status != FS_SUCCESS) {
|
if (fs_status != FS_SUCCESS) {
|
||||||
fs_context_close_file(ctx, f);
|
fs_context_close_file(ctx, f);
|
||||||
*out_err = fs_status_to_errno(status);
|
*out_err = fs_status_to_errno(fs_status);
|
||||||
return KERN_OK;
|
return KERN_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user