[Git][pacman/pacman][master] Ensure paths fit in PATH_MAX when cleaning cache
Allan McRae pushed to branch master at Pacman / Pacman Commits: a6b25247 by Allan McRae at 2024-02-04T08:44:24+10:00 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> - - - - - 1 changed file: - src/pacman/sync.c View it on GitLab: https://gitlab.archlinux.org/pacman/pacman/-/commit/a6b2524762eb3c024f5e6f58... -- View it on GitLab: https://gitlab.archlinux.org/pacman/pacman/-/commit/a6b2524762eb3c024f5e6f58... You're receiving this email because of your account on gitlab.archlinux.org.
participants (1)
-
Allan McRae (@allan)