Index: head/usr.sbin/portsnap/portsnap/portsnap.sh =================================================================== --- head/usr.sbin/portsnap/portsnap/portsnap.sh +++ head/usr.sbin/portsnap/portsnap/portsnap.sh @@ -691,6 +691,13 @@ fetch_index_sanity || return 1 # Verify the snapshot contents cut -f 2 -d '|' INDEX.new | fetch_snapshot_verify || return 1 + cut -f 2 -d '|' tINDEX.new INDEX.new | sort -u > files.expected + find snap -mindepth 1 | sed -E 's^snap/(.*)\.gz^\1^' | sort > files.snap + if ! cmp -s files.expected files.snap; then + echo "unexpected files in snapshot." + return 1 + fi + rm files.expected files.snap echo "done." # Move files into their proper locations