else if (uri.find(std::string("opt/click.ubuntu.com/")) != std::string::npos
&& uri.find(pkgname) != std::string::npos)
{
std::cout << "Client can access content in own opt directory" << std::endl;
return true;
}
This is fine, but only takes into account /opt/click.ubuntu.com. In a default image, packages can also be installed in /usr/share/click/preinstalled/ and /custom/click. These locations are defined in /etc/click/databases.
Currently does_client_ have_access( ) does:
else if (uri.find( std::string( "opt/click. ubuntu. com/")) != std::string::npos
&& uri.find(pkgname) != std::string::npos)
{
std::cout << "Client can access content in own opt directory" << std::endl;
return true;
}
This is fine, but only takes into account /opt/click. ubuntu. com. In a default image, packages can also be installed in /usr/share/ click/preinstal led/ and /custom/click. These locations are defined in /etc/click/ databases.