* On rmdir we need to delete the tdb record
*/
static int posix_eadb_rmdir_internal(vfs_handle_struct *handle,
+ struct files_struct *dirfsp,
const struct smb_filename *smb_fname)
{
NTSTATUS status;
SMB_ASSERT(dirfsp == dirfsp->conn->cwd_fsp);
if (flags & AT_REMOVEDIR) {
- ret = posix_eadb_rmdir_internal(handle, smb_fname);
+ ret = posix_eadb_rmdir_internal(handle,
+ dirfsp,
+ smb_fname);
} else {
ret = posix_eadb_unlink_internal(handle,
dirfsp,
const struct smb_filename *smb_fname)
{
return posix_eadb_rmdir_internal(handle,
+ handle->conn->cwd_fsp,
smb_fname);
}