X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=utils%2Fmountd%2Fmountd.c;h=999f035d9a0227426f3bd112fda3df6fda416321;hp=04141d153a676b70e9e789f1a5369c93b7ab0625;hb=fd9097110f74f39bce89ec3a341fd9b686a68719;hpb=89fb5a45d2020aaee203dd9016d98c3ff9d9f991 diff --git a/utils/mountd/mountd.c b/utils/mountd/mountd.c index 04141d1..999f035 100644 --- a/utils/mountd/mountd.c +++ b/utils/mountd/mountd.c @@ -465,18 +465,18 @@ static exports get_exportlist(void) { static exports elist = NULL; - static time_t etime = 0; - time_t atime; struct exportnode *e, *ne; struct groupnode *g, *ng, *c, **cp; nfs_export *exp; int i; + static unsigned int ecounter; + unsigned int acounter; - atime = auth_reload(); - if (elist && atime == etime) + acounter = auth_reload(); + if (elist && acounter == ecounter) return elist; - etime = atime; + ecounter = acounter; for (e = elist; e != NULL; e = ne) { ne = e->ex_next;