clientAddr.sun_family = AF_UNIX;
if (strlen(interface) >= sizeof(clientAddr.sun_path)) {
- LogError("Error: interface name " << interface << "is too long. Max len is:" << sizeof(clientAddr.sun_path));
+ LogError("Error: interface name " << interface << " is too long. Max len is: " << sizeof(clientAddr.sun_path));
return SECURITY_MANAGER_ERROR_NO_SUCH_SERVICE;
}
{
int ret = mount(source.c_str(), target.c_str(), NULL, MS_BIND, NULL);
if (ret != 0) {
- LogError("Failed to bind directory " << source << "to " << target << " " << GetErrnoString(errno));
+ LogError("Failed to bind directory " << source << " to " << target << " " << GetErrnoString(errno));
return SECURITY_MANAGER_ERROR_MOUNT_ERROR;
}
return SECURITY_MANAGER_SUCCESS;
{
fstream.open(nameFile);
if (!fstream.is_open()) {
- LogError("Unable to open file" << nameFile << ": " << GetErrnoString(errno));
+ LogError("Unable to open file " << nameFile << ": " << GetErrnoString(errno));
ThrowMsg(PermissibleSetException::FileOpenError, "Unable to open file ");
}
ThrowMsg(PrivilegeDb::Exception::ConstraintError,
"Constraints violated by command: " << e.DumpToString());
} catch (DB::SqlConnection::Exception::InternalError &e) {
- LogError("Mysterious internal error in SqlConnection class" << e.DumpToString());
+ LogError("Mysterious internal error in SqlConnection class: " << e.DumpToString());
ThrowMsg(PrivilegeDb::Exception::InternalError,
"Mysterious internal error in SqlConnection class: " << e.DumpToString());
}
if (command->Step())
shared_ro = command->GetColumnInteger(0);
- LogDebug("Package " << pkgName << "has shared_ro set to " << shared_ro);
+ LogDebug("Package " << pkgName << " has shared_ro set to " << shared_ro);
return (shared_ro > 0);
});