jerry@polygen.uucp (Jerry Shekhel) (08/22/89)
Hello. I've been trying to compile the new BSD-style ls on MINIX/PC. It compiles fine, and "ls -CF" works for all directories up to a certain size. However, for some of the bigger directories, it just lists nothing. If I type "ls -CF *" in the same directory, it works. I've tracked the problem down to a buffer overflow in getdents(). I've also found that if I change a constant (DIRBUF, I think) in some header file (dirent.h, I think), to more than the size listed for the large directory (8192 bytes to be safe, I think) and recompile, then everything works fine. I get the feeling, though, that this is not the right way to fix the problem. Does anyone know what's going on? Suggestions for a proper fix? Thanks in advance, Jerry --- +--------------------+-----------------------+-------------------------------+ | | Polygen Corporation | UUCP: | | Jerry J. Shekhel | Waltham, MA 02254 | {princeton, mit-eddie, | | | (617) 890-2888 | buita, sunne}!polygen!jerry | +--------------------+-----------------------+-------------------------------+