summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2023-07-11 00:27:31 +0200
committerLudovic Courtès <ludo@gnu.org>2023-07-11 15:47:56 +0200
commitfe3321f91ae331d3f1d4a389f28fdf02f74da7e8 (patch)
tree12cb0ed7d3b324a939049582a9c85bd5e2a8cd9e /tests
parente1c2c2f042e8741c0759e21e634cd2271e078177 (diff)
downloadguix-fe3321f91ae331d3f1d4a389f28fdf02f74da7e8.tar.gz
cache: 'file-expiration-time' uses 'lstat', not 'stat'.
Fixes a bug whereby 'cached-channel-instance' would potentially consider
cache entries obsolete too early because they refer to items in the
store, which is mounted as 'noatime' on Guix System.

* guix/cache.scm (file-expiration-time): Use 'lstat' and
'false-if-exception' rather than 'stat'.  This matches what (guix
scripts shell) does.
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions