The provisions of this chapter shall not extend to any person who has entered on land by virtue of any contract made with the legal owner of such land, unless it shall appear, on the trial of the action, that such owner has neglected to fulfill such contract of his part, in which case such person in possession shall be entitled to all the privileges in this chapter provided for those who entered upon land under supposed title and the same proceedings shall be had and the land shall be held in the same manner as herein provided for such cases.
S.C. Code § 27-27-100