Commit Briefs

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.





Omar Polo

tread: read at most the requested size

spotted by cage, thanks!


Omar Polo

even more to do!





Omar Polo

add some thoughts


Omar Polo

cosmetic change


Omar Polo

more to do!



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!


Omar Polo

trailing whitespaces