Avoid changing file_extra_cnt during deletion.
authorMatt McCutchen <matt@mattmccutchen.net>
Sun, 30 Jan 2011 03:25:53 +0000 (19:25 -0800)
committerWayne Davison <wayned@samba.org>
Sun, 30 Jan 2011 06:05:16 +0000 (22:05 -0800)
commit57edc4808f566fbaa58ec96bc7e543b1ccb92ab9
treef7f1f16efa8a3c9d809686196d47cf6400db6669
parent69be312b5e335430e3e896e200def6a7c6f89c8d
Avoid changing file_extra_cnt during deletion.

The I/O code can receive incremental file-list chunks during deletion,
and their OPT_EXTRA fields would get corrupted when file_extra_cnt is
incremented.

Instead of temporarily enabling uid_ndx to find out whether the user
owns a file, have make_file() set a flag for that purpose.

Applied with a few minor tweaks by Wayne.  Fixes bug 7936.
delete.c
flist.c
generator.c
rsync.h