To prevent the difficulty and expense to which a landlord or lessor may be put by the fraudulent practice of tenants in attorning to strangers who claim title to the estates of their respective landlords or lessors, every such attornment of any tenant of any lands, tenements or hereditaments shall be absolutely null and void to all intents and purposes whatsoever and the possession of the landlord or lessor shall not be deemed or construed to be in any wise changed, altered or affected by any such attornment. But nothing herein contained shall extend to vacate or affect any attornment made pursuant to, and in consequence of, some judgment, decree or order of court or made with the privity and consent of the landlord or lessor or pursuant to Section 27-35-50.
S.C. Code § 27-35-80