From eded3bba62428f6cc098c3bd8658d32aee3e2c58 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sun, 6 Aug 2000 09:01:43 +0000 Subject: David Taylor's fixes for the UIDL code. svn path=/trunk/; revision=2943 --- uid.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'uid.c') diff --git a/uid.c b/uid.c index 12405519..33e01293 100644 --- a/uid.c +++ b/uid.c @@ -470,8 +470,10 @@ void write_saved_lists(struct query *hostlist, const char *idfile) /* if all lists are empty, nuke the file */ idcount = 0; for (ctl = hostlist; ctl; ctl = ctl->next) { - if (ctl->oldsaved) - idcount++; + for (idp = ctl->oldsaved; idp; idp = idp->next) + if (idp->val.status.mark == UID_SEEN + || idp->val.status.mark == UID_DELETED) + idcount++; } /* either nuke the file or write updated last-seen IDs */ -- cgit v1.2.3