Bongani Zungu's second-half header earned South Africa a 1-0 win against Namibia that boosts their hopes of qualifying for the Africa Cup of Nations last 16.
Bafana Bafana were frustrated by Namibia for large periods at Al Salam Stadium on Friday but finally found a way through in the 68th minute.
Zungu nodded in a corner to ensure South Africa join Ivory Coast on three points after two games, though Morocco remain in control of Group D after claiming successive victories.
A low-quality first half was summed up by Petrus Shitembi dragging a poor shot wide of the target following a promising Namibia attack, while at the other end Hlompho Kekana was off the mark with an ambitious long-range effort.