Given two opens on a file: 1. Windows open with delete-on-close 2. POSIX open with delete-on-close set When handle 1 is closed processing in has_other_nonposix_opens_fn() will not delete the file as (fsp->posix_flags & FSP_POSIX_FLAGS_OPEN) is false, so has_other_nonposix_opens() will return true which is wrong. Have patch, need bugnumber.
This bug was referenced in samba master: f09c5a3dcbb15bb138b6a11eadc04f1bd1d9e3fa 8ccc809f931f5ea8c8893042c1552f7352f0805b 95443320847967ea6412e59b5b7d3853fffe588a
Created attachment 18188 [details] Patch for 4.18 and 4.19 cherry-picked from master
Comment on attachment 18188 [details] Patch for 4.18 and 4.19 cherry-picked from master Skipped the test in the backport as it has conflicts and prerequisites.
This is already shipping in newer Samba versions and 4.18 and 4.19 are EOL.