Also don't panic if the disconnected check fails, just log it.
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Anoop C S <anoopcs@samba.org>
return false;
}
- disconnected = server_id_is_disconnected(&e->pid);
+ if (e->flags & SHARE_ENTRY_FLAG_PERSISTENT_OPEN) {
+ disconnected = !serverid_exists(&e->pid);
+ } else {
+ disconnected = server_id_is_disconnected(&e->pid);
+ }
if (!disconnected) {
char *name = share_mode_filename(talloc_tos(), state->lck);
struct file_id_buf tmp1;
name,
server_id_str_buf(e->pid, &tmp2));
TALLOC_FREE(name);
- smb_panic(__location__);
+ return false;
}
/*