aboutsummaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
authorWill Miles <wmiles@sgl.com>2017-08-23 21:53:16 -0400
committerWilliam Hubbs <w.d.hubbs@gmail.com>2017-11-30 13:56:54 -0600
commita7c99506d9de81b9a2a7547bd11715073de1ce95 (patch)
tree10c1c1afda27116ac7bd7f24c2a9ff2d7d6e44ef /sh
parentf0129307759f1a5eb34b72589e8d48790c92b2db (diff)
Fix repeated dependency cache rebuild if clock skewed
rc_deptree_update_needed would return early as soon as it found any file newer than the existing dependency cache. Unfortunately, the first file found may not be the newest one there; so the clock skew workaround in rc-misc:_rc_deptree_load would be given a timestamp that was still too old. This fix forces a full scan of all relevant files, so as to ensure that we return a timestamp that will allow the clock skew fix to operate. The runtime cost is no worse than the case where the cache is up to date (ie. we must check every possible file). This fixes #161.
Diffstat (limited to 'sh')
0 files changed, 0 insertions, 0 deletions