Use posix_fadvise to hint that we are doing sequential IO, and not
to cache the file as we won't be using it again. Has the side effect of
making the md5 checksum more likely to catch corrupt files.
Set permission on symbolic links.