Some uid/gid fixes for (id_t)-1 and other large ID values.
authorWayne Davison <wayned@samba.org>
Tue, 22 Feb 2011 17:31:54 +0000 (09:31 -0800)
committerWayne Davison <wayned@samba.org>
Tue, 22 Feb 2011 18:27:35 +0000 (10:27 -0800)
commiteee2c77a93d466c11b6162054987114b9a342d8c
treec20655e7bd35192a31701c9ae77ee893725d1864
parent7766e673215542dadc066193a5a166274d00e9ab
Some uid/gid fixes for (id_t)-1 and other large ID values.

The code now avoids any special internal meaning for uid/gid -1, which
allows it to be mapped to a better value (use 4294967295 instead of -1
as the ID to map).  Replaced atol() with something than can return a
value > 0x7FFFFFFF and that will error-out if the value overflows.  If
chown() is called with a uid or gid of -1, complain that the ID is not
settable and signal a transfer error.  Fixes bug 6936.
rsync.c
uidlist.c