[Git][pacman/pacman][master] Avoid double slash when explicitly passing --root or --rootdir
Allan McRae pushed to branch master at Pacman / Pacman Commits: 34611a66 by Finlay Maroney at 2023-09-12T14:22:36+10:00 Avoid double slash when explicitly passing --root or --rootdir Passing a path with a trailing slash to --root or --rootdir can lead to a double slash at the start of paths. e.g. $ pacman --root / -v 2>1 | grep " //" Log File : //var/log/pacman.log In MSYS2, paths starting with // will hit the network and fail. Avoid this be explicitly stripping the trailing / from paths passed to these flags. Signed-off-by: Allan McRae <allan@archlinux.org> - - - - - 1 changed file: - src/pacman/conf.c View it on GitLab: https://gitlab.archlinux.org/pacman/pacman/-/commit/34611a66436ce259625ba3a9... -- View it on GitLab: https://gitlab.archlinux.org/pacman/pacman/-/commit/34611a66436ce259625ba3a9... You're receiving this email because of your account on gitlab.archlinux.org.
participants (1)
-
Allan McRae (@allan)