diff options
Diffstat (limited to 'lib9p/srv.c')
-rw-r--r-- | lib9p/srv.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib9p/srv.c b/lib9p/srv.c index e7fdb03..d5b643d 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; @@ -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; |