Nigeria, Uganda, Mali and Morocco qualified for the 2019 Africa Cup of Nations on Saturday while Libya scored eight goals to keep alive their hopes of also featuring at the finals.
Nigeria drew 1-1 with South Africa in Soweto, Uganda edged Cape Verde 1-0 in Kampala, Mali beat Gabon in Libreville and Morocco went through after rivals Malawi lost in the Comoros.
Libya triumphed 8-1 in the Seychelles and host South Africa next March on the final matchday needing a win to accompany Nigeria in qualifying from Group E.
The Libyans just missed equalling the record away winning margin for a Cup of Nations qualifier held by Ghana, who won 9-1 in Niger 49 years ago.
A total of nine nations have booked places at the newly-extended 24-team finals with hosts Cameroon, Madagascar, Senegal, Egypt and Tunisia securing berths before this weekend.
Nigeria, the three-time former champions who had failed to qualify for the last two editions, were ahead in South Africa within nine minutes when Buhle Mkhwanazi scored an own goal.
Outstanding South African Percy Tau set up the equaliser for Lebo Mothiba on 26 minutes, but the hosts were fortunate as several contentious offside decisions went against Nigeria.
“A draw feels like a victory because of the heat (32 degrees celsius/90 Fahrenheit) and getting little sleep on our overnight flight,” said Nigeria coach Gernot Rohr.
Nigerian president Muhammadu Buhari was among those who hailed the Super Eagles for qualifying.
“The president joins millions of football-loving Nigerians in commending the team for their spirited and disciplined performance against a very formidable opponent,” a statement said.
South Africa coach Stuart Baxter said: “I am proud that we have taken four points off Nigeria in the group and disappointed that we were not braver during the second half.”
Anis Saltou bagged a hat-trick in Victoria as Libya humiliated the Seychelles, whose 188th world ranking is the lowest among the 48 teams in the qualifying competition.
Meanwhile, Patrick Kaddu’s 79th-minute goal not only assured Uganda of first place in Group L, it opened the door for Tanzania to also qualify.