[pacman-dev] [PATCH] libalpm: prevent 301 redirect loop from hanging the process

Mark Ulrich mark.ulrich.86 at gmail.com
Wed Feb 6 14:18:00 UTC 2019


> But what if you have a mirror which legitimately has 2 hops? I could see
> someone trying to run something like:
> 
>   pacman -U https://www.archlinux.org/packages/core/x86_64/pacman/download/
> 
> This is guaranteed 1 redirect already, what if the mirror that it
> redirects to has a legitimate second hop in order to account for some
> reorganizing?
> 
> I'm fine with the spirit of the patch, but limiting this to a single hop
> isn't enough. A larger number like 10 still accomplishes the same goal
> while allowing some mirror flexibility/brokenness.

That makes sense. I will change it to 10 redirects and resubmit.

-- 
Mark Ulrich <mark.ulrich.86 at gmail.com>


More information about the pacman-dev mailing list