Copy file permissions too.