Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!cs.utexas.edu!uunet!mcsun!hp4nl!star.cs.vu.nl!ast From: ast@cs.vu.nl (Andy Tanenbaum) Newsgroups: comp.os.minix Subject: Re: POSIX Message-ID: <3842@math.cs.vu.nl> Date: 26 Oct 89 21:20:31 GMT References: <3819@ast.cs.vu.nl> <1989Oct26.143100.4916@world.std.com> Reply-To: ast@cs.vu.nl (Andy Tanenbaum) Organization: VU Informatica, Amsterdam Lines: 15 In article <1989Oct26.143100.4916@world.std.com> madd@world.UUCP (jim frost) writes: >In article <3819@ast.cs.vu.nl> ast@cs.vu.nl (Andy Tanenbaum) writes: >|When running the test program, I found a gross bug in Doug Gwyn's directory >|package. However, if you call closedir() >|with a dirp that has already been closed, closedir() assumes that dirp >|points to a valid DIR > >I'm not certain I'd call this a directory package bug, Perhaps it wasn't a bug previously, but has to be regarded as a bug now because POSIX explicitly requires a call to closedir() with a rotten argument to return EBADF, not to crash, trap or do anything else. (See Sec. 5.1.2.4 of P1003.1). Andy Tanenbaum (ast@cs.vu.nl)