Good point, this is going to be a BIG problem in the near future.
Renters should probably be more concerned with landlords putting the house/condo on the market for sale rather than getting foreclosed on.
I can speak from experience!!! Know your rights as a renter!!! The owner can sell their property at any time, but as a renter, you have rights to “peaceful enjoyment of the property”. The gray area during the sale… lock box? open house? caravans? etc. Most standard leases, including the one used by the California Realtors Association protect the rights of the landlord, not the renter.
If you are signing a lease, ask your landlord if they have intentions of selling during your lease. If they say no, put it in writing on your lease with addendums like: no lock box, no open house, no caravans and the key addendum… no showings without and accepted written offer. You can also specify a rent reduction if they put the house on the market. If they refuse these requests, then be leery.