diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2025-10-17 15:34:03 +0200 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2025-11-03 17:18:38 +0100 |
| commit | eb83cceb7eb2774e9d7ff90317ab1d0dcf350f2c (patch) | |
| tree | bfdef445654fb9b36a855d8cad555afe16649d06 /gnu/tests | |
| parent | 7d488fec76c8fc36b2d6d058e172fc37f72f9787 (diff) | |
shell: Don’t rely on atime for caching.
Relying on atime was fine even on ‘noatime’ file systems because the atime was
explicitly updated. However, on file systems with atime enabled, cache items
were potentially retained for too long since scanning the cache directory
could update atimes.
* guix/scripts/shell.scm (options-with-caching): In ‘utime’ call, change both
the mtime and the atime.
(guix-shell)[entry-expiration]: Use ‘file-expiration-time’ with ‘stat:mtime’.
Change-Id: Ibe2aedae41a1018a95c2efe7f2dcf08bd1caae2a
Diffstat (limited to 'gnu/tests')
0 files changed, 0 insertions, 0 deletions
