summaryrefslogtreecommitdiff
path: root/lib9p/srv.c
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2025-01-14 19:26:13 -0700
committerLuke T. Shumaker <lukeshu@lukeshu.com>2025-01-14 20:02:28 -0700
commit7f4b9794efb591c9de9906340fe2c26c838c2f52 (patch)
tree3d3c90a3357ea8e8f2fb1e92840af525a3dc3669 /lib9p/srv.c
parentaf308395c6cea756c9911865137ed29e0fb34aae (diff)
lib9p: idl: Add numeric constants
Diffstat (limited to 'lib9p/srv.c')
-rw-r--r--lib9p/srv.c2
1 files changed, 1 insertions, 1 deletions
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;