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.
This commit is contained in:
Colin Percival 2011-10-23 06:23:11 +00:00
parent 089ff57221
commit 97d4be7ebc
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=226650

View File

@ -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}"