diff options
author | Antoine Jacoutot <ajacoutot@cvs.openbsd.org> | 2018-03-10 12:34:54 +0000 |
---|---|---|
committer | Antoine Jacoutot <ajacoutot@cvs.openbsd.org> | 2018-03-10 12:34:54 +0000 |
commit | 5cfbc14b024d761425ccc47eba23318949e03d91 (patch) | |
tree | c1445bc964e80f0e32bd3d5f30c7b9cf9786162b /usr.sbin/syspatch | |
parent | 7af471b79c787399aa4d7d23bc022d1fb9d2360c (diff) |
Allow fetching syspatches from ftp.
from Andrew Marks
ok deraadt@
Diffstat (limited to 'usr.sbin/syspatch')
-rw-r--r-- | usr.sbin/syspatch/syspatch.sh | 4 |
1 files changed, 2 insertions, 2 deletions
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 <ajacoutot@openbsd.org> # @@ -264,7 +264,7 @@ _OSrev=${_KERNV[0]%.*}${_KERNV[0]#*.} _MIRROR=$(while read _line; do _line=${_line%%#*}; [[ -n ${_line} ]] && print -r -- "${_line}"; done </etc/installurl | tail -1) 2>/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)" |