People who buy guns in Maine through a private sale that is publicly advertised will be subject to a background check under new legislation signed by Gov. Janet Mills Friday, one day after the six-month anniversary of a mass shooting in the state that killed 18.