Commit Briefs


1cf719e9c6 Omar Polo

reply with an Rerror if Rread/Rstat would overflow msize

Other replies have either a fixed reply size or a (relatively small) maximum reply size. Rread and Rstat on the other hand are easy to abuse and generate replies longer that msize. I don't care if a client manage to negotiate a ridiculy small msize (maybe will add a minimum value in tversion in the future), but I feel that Rread and Rstat need a small safety net.





d8dd8bd77f Omar Polo

tread: read at most the requested size

spotted by cage, thanks!


9857629615 Omar Polo

even more to do!


1b3f8c3579 cage

- [regress-extra] added a few more tests.


c715164bba cage

- [regress-extra] changed library's name.


34719c284b cage

- [regress-extra] removed client's code.


5e8a17ecaa Omar Polo

add some thoughts


448044c5c7 Omar Polo

cosmetic change


ff714ba6db Omar Polo

more to do!


5129baa3c3 Omar Polo

improve comment regarding 9p Tstat compliance


e39620502e Omar Polo

fix the stat on directories

For directories, f-dir->fd is *the* file descriptor associated with that directory, so doing a fstatat(f->dir->fd, f->fpath) was trying to do a lookup for f->fpath (the directory name) *inside* the directory itself. bug spotted by cage, thanks!