pacman/src
Allan McRae a6b2524762 Ensure paths fit in PATH_MAX when cleaning cache
If a path length exceeds the PATH_MAX value, then it gets truncated
when building the path of the file to delete. This could (in a very
unlikely case...) result in the wrong file being deleted.  Check the
path fittedin the buffer before removing files.

Signed-off-by: Allan McRae <allan@archlinux.org>
2024-02-04 08:44:24 +10:00
..
common Update copyright years 2022-01-02 13:34:52 +10:00
pacman Ensure paths fit in PATH_MAX when cleaning cache 2024-02-04 08:44:24 +10:00
util Update copyright years 2022-01-02 13:34:52 +10:00