fstring dev;
int ret;
bool on_err_call_dis_hook = false;
- bool claimed_connection = false;
uid_t effuid;
gid_t effgid;
NTSTATUS status;
goto err_root_exit;
}
- /*
- * Get us an entry in the connections db
- */
- if (!claim_connection(conn, lp_servicename(talloc_tos(), snum))) {
- DEBUG(1, ("Could not store connections entry\n"));
- status = NT_STATUS_INTERNAL_DB_ERROR;
- goto err_root_exit;
- }
- claimed_connection = true;
-
/* Invoke VFS make connection hook - this must be the first
filesystem operation that we do. */
/* Call VFS disconnect hook */
SMB_VFS_DISCONNECT(conn);
}
- if (claimed_connection) {
- yield_connection(conn, lp_servicename(talloc_tos(), snum));
- }
return status;
}
/* Call VFS disconnect hook */
SMB_VFS_DISCONNECT(conn);
- yield_connection(conn, lp_servicename(talloc_tos(), SNUM(conn)));
-
/* make sure we leave the directory available for unmount */
vfs_ChDir(conn, "/");