pacman/src
Finlay Maroney 34611a6643 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>
2023-09-12 14:22:36 +10:00
..
common Update copyright years 2022-01-02 13:34:52 +10:00
pacman Avoid double slash when explicitly passing --root or --rootdir 2023-09-12 14:22:36 +10:00
util Update copyright years 2022-01-02 13:34:52 +10:00