summaryrefslogtreecommitdiffstats
path: root/usr.sbin/freebsd-update
diff options
context:
space:
mode:
authorcperciva <cperciva@FreeBSD.org>2011-10-23 06:23:11 +0000
committercperciva <cperciva@FreeBSD.org>2011-10-23 06:23:11 +0000
commite4fa596174b3864e4066bfc84d8de88f3234d696 (patch)
tree210fa8e03a36475a01c6f909996b57e717024675 /usr.sbin/freebsd-update
parent864e0e20bbdbd1cd0bfb7d45c7cce2a1577607bf (diff)
downloadFreeBSD-src-e4fa596174b3864e4066bfc84d8de88f3234d696.zip
FreeBSD-src-e4fa596174b3864e4066bfc84d8de88f3234d696.tar.gz
Add '%' and '@' to the set of characters which can appear in path names.
Without this change, freebsd-update refuses to accept 9.0 metadata files.
Diffstat (limited to 'usr.sbin/freebsd-update')
-rw-r--r--usr.sbin/freebsd-update/freebsd-update.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/freebsd-update/freebsd-update.sh b/usr.sbin/freebsd-update/freebsd-update.sh
index 8dca87d..ea4099a 100644
--- a/usr.sbin/freebsd-update/freebsd-update.sh
+++ b/usr.sbin/freebsd-update/freebsd-update.sh
@@ -1200,7 +1200,7 @@ fetch_metadata_sanity () {
# Some aliases to save space later: ${P} is a character which can
# appear in a path; ${M} is the four numeric metadata fields; and
# ${H} is a sha256 hash.
- P="[-+./:=_[[:alnum:]]"
+ P="[-+./:=%@_[[:alnum:]]"
M="[0-9]+\|[0-9]+\|[0-9]+\|[0-9]+"
H="[0-9a-f]{64}"
OpenPOWER on IntegriCloud