Anyone given possession under a judicial sale confirmed, where the title is retained as a security for the price, is the legal owner of the property for all purposes of bringing suits for injuries thereto, after the day of sale, by trespass or wrongful possession, in the same manner as if the title had been conveyed to him on day of sale, unless restrained by some order of the court directing the sale; and the suit brought is under the control of the court ordering the sale. (1858-9, c. 50; Code, s. 942; Rev., s. 403; C.S., s. 448.)