Recourse for faulty water heater installation

Who pays for repairs: contractor, inspector or seller?

DEAR BARRY: We recently bought an old home that was just remodeled, including a new water heater. But since we moved in, the pilot light keeps going out. The contractor who did the remodel says he didn’t install the water heater, but he should know who did.

We called the manufacturer of the water heater who said the vent pipe should be installed straight up and not sideways through the wall. Nothing was said about this by our home inspector. He said the water heater is "satisfactory." Who is liable for the cost of repairs? –Virginia