From: Wayne Davison Date: Tue, 22 Feb 2011 17:31:54 +0000 (-0800) Subject: Some uid/gid fixes for (id_t)-1 and other large ID values. X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/eee2c77a93d466c11b6162054987114b9a342d8c?hp=eee2c77a93d466c11b6162054987114b9a342d8c 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. ---