Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!linus!decvax!harpo!seismo!hao!hplabs!sri-unix!gwyn@brl-vld
From: gwyn@brl-vld@sri-unix.UUCP
Newsgroups: net.unix-wizards
Subject: new directory access routines caveat
Message-ID: <3794@sri-arpa.UUCP>
Date: Wed, 3-Aug-83 21:25:47 EDT
Article-I.D.: sri-arpa.3794
Posted: Wed Aug  3 21:25:47 1983
Date-Received: Sat, 6-Aug-83 03:59:12 EDT
Lines: 12

From:      Doug Gwyn (VLD/VMB) 

While converting the Columbus "make" to use the new directory access
routines a la Berkeley, I discovered the following interesting problem.

One would think that to rescan a directory you would just use rewinddir()
on the open DIR stream.  However, due to directory-block buffering inside
the directory access package, this may fail to pick up new files added to
the directory since the opendir().  The general solution is to closedir()
and opendir() again.

You can see how "make" would get terribly confused by this.