Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!purdue!bu-cs!polygen!jerry From: jerry@polygen.uucp (Jerry Shekhel) Newsgroups: comp.os.minix Subject: New ls on MINIX/PC Message-ID: <528@polygen.UUCP> Date: 21 Aug 89 18:10:25 GMT References: <196814@neabbs.UUCP> Reply-To: jerry@polygen.UUCP (Jerry Shekhel) Organization: Polygen Corporation, Waltham, MA Lines: 21 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 | +--------------------+-----------------------+-------------------------------+