summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2024-10-10 10:26:28 -0600
committerLuke T. Shumaker <lukeshu@lukeshu.com>2024-10-10 10:26:28 -0600
commitdb92bd35807305e6daec5ec40bd67cbc43fe88ee (patch)
tree8458933923545c87632e953a1c10a215efa78a0c /cmd
parentbb5afed7a0eeaf361be1e29b3a3ab8ace2865b39 (diff)
lib9p: Implemnt Topen, add permission checks in Twalk
Diffstat (limited to 'cmd')
-rw-r--r--cmd/srv9p/static.c5
1 files changed, 2 insertions, 3 deletions
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) {