From db92bd35807305e6daec5ec40bd67cbc43fe88ee Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Thu, 10 Oct 2024 10:26:28 -0600 Subject: lib9p: Implemnt Topen, add permission checks in Twalk --- cmd/srv9p/static.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'cmd') diff --git a/cmd/srv9p/static.c b/cmd/srv9p/static.c index e89c478..912ec03 100644 --- a/cmd/srv9p/static.c +++ b/cmd/srv9p/static.c @@ -24,13 +24,12 @@ static void static_dir_free(struct lib9p_srv_ctx *ctx, struct lib9p_srv_file *_f /* do nothing */ } -static struct lib9p_srv_io *static_dir_io(struct lib9p_srv_ctx *ctx, struct lib9p_srv_file *_file, lib9p_o_t UNUSED(flags)) { +static uint32_t static_dir_io(struct lib9p_srv_ctx *ctx, struct lib9p_srv_file *_file, lib9p_o_t UNUSED(flags)) { assert(ctx); struct static_dir *file = (struct static_dir *)_file; assert(file); - lib9p_error(&ctx->basectx, LINUX_EFAULT, "TODO: io"); - return NULL; + return 1; } static struct lib9p_stat static_dir_stat(struct lib9p_srv_ctx *ctx, struct lib9p_srv_file *_file) { -- cgit v1.2.3-2-g168b