unpack: apply correctly file permissions to existent files.

Will be backported to the 0.26.x branch.
Bump to 0.26.2.