Poland border crisis: What happens to migrants who are turned away?

Poland and Lithuania are increasingly sending migrants back to Belarus - but is this legal?

Poland border crisis: What happens to migrants who are turned away?
Poland and Lithuania are increasingly sending migrants back to Belarus - but is this legal?