Makes the permissions of file2 the same as file1

1
chmod --reference file1 file2

#12850 - 2020-10-23