make rsync behave more like GNU cp with regard to file permissions
authorAndrew Tridgell <tridge@samba.org>
Fri, 17 Jul 1998 13:18:32 +0000 (13:18 +0000)
committerAndrew Tridgell <tridge@samba.org>
Fri, 17 Jul 1998 13:18:32 +0000 (13:18 +0000)
when -p (preserve permissions) isn't set.

It works by taking the sending file permissions and masking them with
the umask to create the destination file permissions. (There is really
no "correct" way of doing this but at least we now behave like GNU cp
which fits the principle of least surprise.)

also fixed a race condition in copy_file()


No differences found