Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!rutgers!bellcore!texbell!sugar!peter From: peter@sugar.hackercorp.com (Peter da Silva) Newsgroups: comp.sys.amiga.tech Subject: Re: Question about EXAMINE/EXNEXT Message-ID: <3622@sugar.hackercorp.com> Date: 15 Mar 89 11:34:31 GMT References: <8374@netnews.upenn.edu> <757@microsoft.UUCP> <5977@bsu-cs.UUCP> <6077@bsu-cs.UUCP> Distribution: na Organization: Sugar Land Unix - Houston Lines: 9 The only safe thing to do is have scdir() read all the file names right off into malloced ram. That solves both problems: loose locks and changing directories %. Then later calls to scdir() would just step down the list and free the names... or not. -- % Yes, I know this just narrows the window of vulnerability. -- Peter "Have you hugged your wolf today" da Silva `-_-' ...texbell!sugar!peter, or peter@sugar.hackercorp.com 'U`