commit 5129baa3c338a573e4056f27d639646733a673be from: Omar Polo date: Thu Dec 30 11:22:57 2021 UTC improve comment regarding 9p Tstat compliance commit - e39620502e6b32eee63d515326263d3566914cb0 commit + 5129baa3c338a573e4056f27d639646733a673be blob - c56f6a0b744d2ebd8a7591100e72ccb44ecdf21a blob + 677d0175769dee1f73404b966c7291e325e408aa --- client.c +++ client.c @@ -1494,8 +1494,10 @@ tstat(struct np_msg_header *hdr, const uint8_t *data, /* * plan9' stat(9P) is not clear on whether the stat is allowed - * on opened fids or not. + * on opened fids or not. We're allowing stat regardless of the + * status of the fid. */ + if ((f = fid_by_id(fid)) == NULL) { np_error(hdr->tag, "invalid fid"); return;