fd2path should probably complain if the buffer is too small. i'm surprised at any actual name longer than 512 (or even 256), not so much for plan 9, but because linux systems still seem to have that tiny TTY limit on the size of an input line, or it did the last time i tried to use the mouse to snarf and send a command line printed by make.