commit 9d34b45bd8d799d47a9f05390043a4b2c46bce9d
parent cd8b4ed59912a3c2dc4dff79a98fec91da1d1f73
Author: ssnf <ssnf@ssnf.xyz>
Date: Sun, 15 Jun 2025 16:39:54 +0000
ignore wstat requests on lib9p
Linux's v9fs doesn't work without this.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/lib9p/srv.c b/src/lib9p/srv.c
@@ -20,7 +20,7 @@ static char Enoremove[] = "remove prohibited";
static char Enostat[] = "stat prohibited";
static char Enotfound[] = "file not found";
/* static char Enowrite[] = "write prohibited"; */
-static char Enowstat[] = "wstat prohibited";
+/*static char Enowstat[] = "wstat prohibited";*/
static char Eperm[] = "permission denied";
static char Eunknownfid[] = "unknown fid";
static char Ebaddir[] = "bad directory in wstat";
@@ -659,7 +659,7 @@ swstat(Srv *srv, Req *r)
return;
}
if(srv->wstat == nil){
- respond(r, Enowstat);
+ respond(r, nil);
return;
}
if(convM2D(r->ifcall.stat, r->ifcall.nstat, &r->d, (char*)r->ifcall.stat) != r->ifcall.nstat){