In https://bugzilla.samba.org/show_bug.cgi?id=15006#c6 Kacper wrote: > 0fdd7e16a1d2c68e3fa4262c8e7355b0889c5b66 broke 'samba-tool gpo restore" when > used without the --tmpdir option. cmd_restore depended upon the tmpdir being > there after cmd_create but now that directory is being clean up and no longer > available for cmd_restore, resulting in a FileNotFoundError.
Created attachment 18073 [details] Proposed patch for bug #15462
Can you contribute the patch via gitlab? https://wiki.samba.org/index.php/Contribute
This bug was referenced in samba master: 90ba53eee4a3614da81ee562be2a55c01888c2cf