--- /usr/src/redhat/SOURCES/nfs-utils-1.0.7/utils/mountd/auth.c 2004-12-05 16:46:40.000000000 -0800 +++ nfs-utils-1.0.7/utils/mountd/auth.c 2005-03-02 16:52:22.403733192 -0800 @@ -12,6 +12,7 @@ #include #include #include +#include #include "misc.h" #include "nfslib.h" #include "exportfs.h" @@ -49,12 +50,14 @@ { struct stat stb; static time_t last_modified = 0; + static time_t last_read = 0; if (stat(_PATH_ETAB, &stb) < 0) xlog(L_FATAL, "couldn't stat %s", _PATH_ETAB); - if (stb.st_mtime == last_modified) + if ((stb.st_mtime == last_modified) && (last_read > last_modified)) return 0; last_modified = stb.st_mtime; + last_read = time(NULL); export_freeall(); memset(&my_client, 0, sizeof(my_client));