From 5cfbc14b024d761425ccc47eba23318949e03d91 Mon Sep 17 00:00:00 2001 From: Antoine Jacoutot Date: Sat, 10 Mar 2018 12:34:54 +0000 Subject: Allow fetching syspatches from ftp. from Andrew Marks ok deraadt@ --- usr.sbin/syspatch/syspatch.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin/syspatch') diff --git a/usr.sbin/syspatch/syspatch.sh b/usr.sbin/syspatch/syspatch.sh index 9c4f5c54252..023e1fdd9ec 100644 --- a/usr.sbin/syspatch/syspatch.sh +++ b/usr.sbin/syspatch/syspatch.sh @@ -1,6 +1,6 @@ #!/bin/ksh # -# $OpenBSD: syspatch.sh,v 1.134 2017/12/29 18:56:36 ajacoutot Exp $ +# $OpenBSD: syspatch.sh,v 1.135 2018/03/10 12:34:53 ajacoutot Exp $ # # Copyright (c) 2016, 2017 Antoine Jacoutot # @@ -264,7 +264,7 @@ _OSrev=${_KERNV[0]%.*}${_KERNV[0]#*.} _MIRROR=$(while read _line; do _line=${_line%%#*}; [[ -n ${_line} ]] && print -r -- "${_line}"; done /dev/null -[[ ${_MIRROR} == @(file|http|https)://* ]] || +[[ ${_MIRROR} == @(file|ftp|http|https)://* ]] || sp_err "${0##*/}: invalid URL configured in /etc/installurl" _MIRROR="${_MIRROR}/syspatch/${_KERNV[0]}/$(machine)" -- cgit v1.2.3