From: Roy Marples Date: Wed, 24 Sep 2014 09:49:09 +0000 (+0000) Subject: Don't discard expired leases when dumping. X-Git-Tag: v6.4.6~14 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=698eadd44c4da7ed2875f701aff7b44bfeae262a;p=thirdparty%2Fdhcpcd.git Don't discard expired leases when dumping. --- diff --git a/dhcp6.c b/dhcp6.c index 7b235fea..7461ee9a 100644 --- a/dhcp6.c +++ b/dhcp6.c @@ -2058,7 +2058,9 @@ dhcp6_readlease(struct interface *ifp) if (fd == -1) goto ex; - if (state->expire != ND6_INFINITE_LIFETIME) { + if (!(ifp->options->options & DHCPCD_DUMPLEASE) && + state->expire != ND6_INFINITE_LIFETIME) + { gettimeofday(&now, NULL); if ((time_t)state->expire < now.tv_sec - st.st_mtime) { syslog(LOG_DEBUG,"%s: discarding expired lease",