From af308395c6cea756c9911865137ed29e0fb34aae Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Tue, 14 Jan 2025 18:12:00 -0700 Subject: lib9p: idl: .u: Pull out an `nuid` type --- lib9p/srv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib9p/srv.c') diff --git a/lib9p/srv.c b/lib9p/srv.c index e7fdb03..259ef04 100644 --- a/lib9p/srv.c +++ b/lib9p/srv.c @@ -510,7 +510,7 @@ static void handle_Tauth(struct _lib9p_srv_req *ctx, struct lib9p_msg_Rauth *resp) { util_handler_common(ctx, req, resp); - ctx->ctx.uid = req->n_uname; + ctx->ctx.uid = req->n_uid; ctx->ctx.uname = req->uname.utf8; struct lib9p_srv *srv = ctx->parent_sess->parent_conn->parent_srv; @@ -530,7 +530,7 @@ static void handle_Tattach(struct _lib9p_srv_req *ctx, struct lib9p_msg_Rattach *resp) { util_handler_common(ctx, req, resp); - ctx->ctx.uid = req->n_uname; + ctx->ctx.uid = req->n_uid; ctx->ctx.uname = req->uname.utf8; struct lib9p_srv *srv = ctx->parent_sess->parent_conn->parent_srv; -- cgit v1.2.3-2-g168b From 7f4b9794efb591c9de9906340fe2c26c838c2f52 Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Tue, 14 Jan 2025 19:26:13 -0700 Subject: lib9p: idl: Add numeric constants --- lib9p/srv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib9p/srv.c') diff --git a/lib9p/srv.c b/lib9p/srv.c index 259ef04..d5b643d 100644 --- a/lib9p/srv.c +++ b/lib9p/srv.c @@ -562,7 +562,7 @@ static void handle_Tattach(struct _lib9p_srv_req *ctx, LINUX_EOPNOTSUPP, "TODO: auth not implemented"); return; } else { - if (req->afid != LIB9P_NOFID) { + if (req->afid != LIB9P_FID_NOFID) { lib9p_error(&ctx->ctx.basectx, LINUX_EACCES, "FID provided as auth-file, but no auth-file is required"); return; -- cgit v1.2.3-2-g168b