MS-FSA has: 2.1.5.1.2.1 Algorithm to Check Access to an Existing File ... If ((File.FileAttributes.FILE_ATTRIBUTE_READONLY || File.Volume.IsReadOnly) && CreateOptions.FILE_DELETE_ON_CLOSE), then return STATUS_CANNOT_DELETE. smbd does not return the STATUS_CANNOT_DELETE status, but allows the CREATE to succeed. Patch to follow.
Created attachment 14604 [details] git-am fix for 4.9.next, 4.8.next. git-am fix for 4.9.next, 4.8.next, back-ported from master.
Created attachment 14605 [details] Patches for 4.8
Re-assigning to Karolin for inclusion in 4.9.next, 4.8.next.
(In reply to Jeremy Allison from comment #3) Pushed to autobuild-v4-{9,8}-test.
(In reply to Karolin Seeger from comment #4) Pushed to both branches. Closing out bug report. Thanks!