[net.emacs] Fix to Emacs #264 filename completion routines.

thomas%UTAH-GR@utah-cs@sri-unix.UUCP (08/06/83)

From:  Spencer W. Thomas  <thomas%UTAH-GR@utah-cs>

The filename completion routine does not invalidate the cache when the
directory changes (as pointed out by David Chase at Rice).  Here is a
fix:
13a14
> static time_t DirModTime;		/* modification time of in-core dir */
157c158,160
<     if (strcmp (dir, DirPath) == 0)
---
>     /* Return if dir is already incore and it hasn't changed on disk */
>     if (DirModTime != 0 && stat(DirPath, &st) == 0 &&
> 	DirModTime == st.st_mtime && strcmp (dir, DirPath) == 0)
165a169
>     DirModTime = st.st_mtime;

=Spencer