[PATCH] Fix bug 13358 - open for delete on close without delete access can leave files around.

Jeremy Allison jra at samba.org
Wed Mar 28 21:07:56 UTC 2018


Hi all,

Steve found an issue where creating files
with DELETE_ON_CLOSE requested but without
requesting DELETE access can leave "orphan"
files on the server (request fails, but
file is still created). It turns out we
had a test that this request fails, but
we weren't then checking that the file
hadn't been created.

I spent some time probing Windows to discover
how it behaves in these circumstances, and
coded the probes up as a set of regression
tests.

Here is the bugfix for Samba plus the regression
tests.

Please review and push if happy !

Cheers,

	Jeremy.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bug-13358-master.patch
Type: text/x-diff
Size: 15742 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20180328/7de79b88/bug-13358-master.diff>


More information about the samba-technical mailing list