The true semantics of resetting Delete-on-Close

Volker Lendecke Volker.Lendecke at SerNet.DE
Tue Jul 25 07:20:15 UTC 2017


On Mon, Jul 24, 2017 at 01:34:29PM -0700, Richard Sharpe via samba-technical wrote:
> >> A scan of the code in
> >> source3/smbd/trans2.c:smb_set_file_disposition_info suggests that we
> >> do not properly implement those semantics. That is, if we are asked to
> >> rest the Delete-on-Close state we do so even if the file is not in the
> >> Delete-Pending state.
> >
> > Patch + regression test welcome :-). If you want it in 4.7.0 log
> > the bug first :-).
> 
> I will give that a try today or tomorrow.

What's the fsp->initial_delete_on_close flag supposed to do?

Volker

-- 
SerNet GmbH, Bahnhofsallee 1b, 37081 G├Âttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG G├Âttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de, mailto:kontakt at sernet.de



More information about the samba-technical mailing list