The old code in smbd implementing CTEMP uses a non-VFS function mkstemp(). Found when testing CEPH VFS module. Fix to follow.
Created attachment 8785 [details] git-am fix for master and 4.0.next Here is the fix that just uses VFS_OPEN with a create disposition of FILE_CREATE. Tested by the CEPH VFS author and works. I will also submit to samba-technical. Jeremy.
Created attachment 8786 [details] git-am fix for 3.6.next. Same fix for 3.6.next.
Comment on attachment 8786 [details] git-am fix for 3.6.next. Looks good. Same smb_fname tos leakage on retry comment applies.
Created attachment 8794 [details] updated git-am fix for master and 4.0.next > Looks good Jeremy, a couple of minor comments: > - There's some white space damage on line 2484. Fixed. > - smb_fname leaks onto tos on retry. Fixed.
Created attachment 8795 [details] git-am fix for 3.6.next Fixed the smb_fname leak on continue.
Karolin, please merge to the 3.6 and 4.0 branches.
Pushed to v3-6-test and autobuild-v4-0-test.
Pushed to v4-0-test. Closing out bug report. Thanks!