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 <al...@archlinux.org>

- - - - -


1 changed file:

- src/pacman/conf.c


View it on GitLab: 
https://gitlab.archlinux.org/pacman/pacman/-/commit/34611a66436ce259625ba3a9ef50b1d287e112ea

-- 
View it on GitLab: 
https://gitlab.archlinux.org/pacman/pacman/-/commit/34611a66436ce259625ba3a9ef50b1d287e112ea
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to