Commit 34611a66 authored by Finlay Maroney's avatar Finlay Maroney Committed by Allan McRae
Browse files

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: default avatarAllan McRae <allan@archlinux.org>
parent 76b140c7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment