Am 30.10.19 um 07:32 schrieb tom ryan:
> On 2019-10-29 20:19, PJ wrote:
>> Am 28.10.19 um 23:52 schrieb Stuart Henderson:
>>> On 2019-10-28, Andy Lemin <andrew.le...@gmail.com> wrote:
>>>> Hi guys,
>>>>
>>>> Does anyone know if it is possible to completely disable ftp in the 
>>>> package management utilities; pkg_add, syspatch, sysupgrade etc?
>>>>
>>>> My PKG_PATH references http:// urls, as does /etc/install. But I cannot 
>>>> stop these tools trying to use ftp which does not work! :(
>>> Can you show some example URLs, for example from "pgrep -lf ftp" while
>>> trying to use one of these utilities?
>>>
>>> The only place I would expect to see ftp:// URLs used
>> grep ftp /usr/sbin/sysupgrade
> $ grep -ne ftp -e URL -e MIRROR /usr/sbin/sysupgrade
> 102:0)  MIRROR=$(sed 's/#.*//;/^$/d' /etc/installurl) 2>/dev/null ||
> 103:            MIRROR=https://cdn.openbsd.org/pub/OpenBSD
> 105:1)  MIRROR=$1
> 117:    URL=${MIRROR}/snapshots/${ARCH}/
> 119:    URL=${MIRROR}/${NEXT_VERSION}/${ARCH}/
> 136:unpriv -f SHA256.sig ftp -Vmo SHA256.sig ${URL}SHA256.sig
> 176:    unpriv -f $f ftp -Vmo ${f} ${URL}${f}
>
> Your point?

I understand that I misread the question, sorry.


>>> is when fetching
>>> certain distfiles while building some things from ports (and they would
>>> usually fallback to http://ftp.openbsd.org/pub/OpenBSD/distfiles if
>>> the ftp fetch failed)..

Reply via email to