smbd: add twrp arg to synthetic_smb_fname()
[amitay/samba.git] / source3 / smbd / durable.c
index 26537567e8eeef61f399117ef5b9ade0b8ded3a4..de4f457b1d2e8f7c354e8916321566e599e8be36 100644 (file)
@@ -180,10 +180,10 @@ NTSTATUS vfs_default_durable_disconnect(struct files_struct *fsp,
         * For now let it be simple and do not keep
         * delete on close files durable open
         */
-       if (fsp->initial_delete_on_close) {
+       if (fsp->fsp_flags.initial_delete_on_close) {
                return NT_STATUS_NOT_SUPPORTED;
        }
-       if (fsp->delete_on_close) {
+       if (fsp->fsp_flags.delete_on_close) {
                return NT_STATUS_NOT_SUPPORTED;
        }
 
@@ -587,6 +587,7 @@ NTSTATUS vfs_default_durable_reconnect(struct connection_struct *conn,
                                        cookie.base_name,
                                        NULL,
                                        NULL,
+                                       0,
                                        0);
        if (smb_fname == NULL) {
                return NT_STATUS_NO_MEMORY;
@@ -703,7 +704,7 @@ NTSTATUS vfs_default_durable_reconnect(struct connection_struct *conn,
        /*
         * We do not support aio write behind for smb2
         */
-       fsp->aio_write_behind = false;
+       fsp->fsp_flags.aio_write_behind = false;
        fsp->oplock_type = e.op_type;
 
        if (fsp->oplock_type == LEASE_OPLOCK) {