Using Debian bookworm, which is currently Samba 4.16.2, I had to make the modifications below for it to work.
fsp->fh->fd was throwing compiler errors, fsp_get_io_fd(fsp) seems to be a suitable workaround.
For some reason, in the renameat, linkat, and unlinkat functions, oldname->base_name and newname->base_name were literally base names, and did not include paths within the share. My workaround fixes that as well.
Using Debian bookworm, which is currently Samba 4.16.2, I had to make the modifications below for it to work.
fsp->fh->fd
was throwing compiler errors,fsp_get_io_fd(fsp)
seems to be a suitable workaround.For some reason, in the
renameat
,linkat
, andunlinkat
functions,oldname->base_name
andnewname->base_name
were literally base names, and did not include paths within the share. My workaround fixes that as well.Still in testing, but so far it seems stable.
Posting here for your thoughts.