| commit | 57edc4808f566fbaa58ec96bc7e543b1ccb92ab9 | [log] [tgz] |
|---|---|---|
| author | Matt McCutchen <matt@mattmccutchen.net> | Sat Jan 29 19:25:53 2011 -0800 |
| committer | Wayne Davison <wayned@samba.org> | Sat Jan 29 22:05:16 2011 -0800 |
| tree | f7f1f16efa8a3c9d809686196d47cf6400db6669 | |
| parent | 69be312b5e335430e3e896e200def6a7c6f89c8d [diff] |
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.