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)
commit72914a606ec66f61678c6d077e515f08908e76a3
tree869b03060616775ab5bebe2af0368abf589a4c40
parent4b957c22381cf1848ff6a5e59249bb71ba79e9fa
make rsync behave more like GNU cp with regard to file permissions
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()
flist.c
rsync.c