]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r306825: portsnap: use lam on the known good hash list
authoremaste <emaste@FreeBSD.org>
Fri, 9 Dec 2016 17:21:59 +0000 (17:21 +0000)
committeremaste <emaste@FreeBSD.org>
Fri, 9 Dec 2016 17:21:59 +0000 (17:21 +0000)
commit2bf9c38c43a95678a41a9dfb95771cc939e116fc
treeabad5643719b1069d33e984d10af4e27d9aaa30e
parent710f9f13d715fbe927db6ab3db1e97f4eecd3835
MFC r306825: portsnap: use lam on the known good hash list

This change is equivalent to the approach committed in r306417, but if
sed has a bug it could be exploited by the untrusted tar file. Instead,
generate the expected tar content and compare that with find's output.

Submitted by: cperciva (in review D8052)
usr.sbin/portsnap/portsnap/portsnap.sh