When writing to a daemon with read only = false and uid = root and -g,
authorDavid Dykstra <dwd@samba.org>
Wed, 29 Dec 1999 20:50:48 +0000 (20:50 +0000)
committerDavid Dykstra <dwd@samba.org>
Wed, 29 Dec 1999 20:50:48 +0000 (20:50 +0000)
commit128cf58433592234d105f2b29865d0f739629cb3
tree69df43ba3524cc2c971900f8467209e2953765b3
parent7e0ca8e2f0945b8c1b99c88a0283068a3adb19e4
When writing to a daemon with read only = false and uid = root and -g,
was not preserving group permisions.  Bug was introduced March 1 in
version 1.100 of rsync.c with an error in re-ordering of the boolean
expressions.  In order to completely preserve the earlier semantics,
change_gid should depend on "(am_root || !am_daemon)", but I don't see why
group ownership should behave differently in a non-root daemon.
rsync.c