In any case in which a contractor enters into a contract with an executive agency under which apparently wholesome food is donated to food-insecure people in the United States, the head of the executive agency shall not assume responsibility for the costs and logistics of collecting, transporting, maintaining the safety of, or distributing excess, apparently wholesome food to food-insecure people in the United States under this section.
An executive agency (including an executive agency that enters into a contract with a contractor) and any contractor making donations pursuant to this section shall be exempt from civil and criminal liability to the extent provided under section 1791 of this title.