Is there any remedy for companies that are behaving badly amid the coronavirus pandemic? There is at least a partial one: attention.

If employees, journalists and — most important — customers call attention to selfish behavior that endangers people, there is at least a chance that companies will stop it. That is, they will decide that the cost of the bad publicity isn’t worth it. Or maybe a company’s executives will even suffer a crisis of confidence.

As Judd Legum, a lawyer and journalist who writes the Popular Information newsletter, told me:

Corporations are always concerned about new information that could harm their reputation with customers, but the pandemic has intensified their sensitivity. Today, a corporation that customers believe is not showing sufficient concern for the safety of its customers and employees could incur severe damage. So companies are willing to take significant action to avoid that fate.

Legum would know. His reporting in recent weeks has helped cause changes at two major companies.

When the coronavirus crisis began, both the Darden restaurant company and Kroger supermarkets — which together employ about 600,000 people — kept in place restrictive sick leave policies that had the potential to worsen the outbreak.

Many Kroger workers could get paid leave only if they tested positive for the virus, even though testing remained limited. And Darden, which operates Capital Grille, Olive Garden and other chains, didn’t offer paid leave unless a state mandated it.

But soon after Legum wrote about the companies’ policies, both companies changed their policies and expanded leave. As Susan Hanway, one of Legum’s readers, wrote: “In the better late than never department. On the other hand, how many people have gotten sick due to their slow response?”