Copies the file permissions from one file to another.