Unpunished attacks on foreigners in South Africa are disturbingly common; and foreigners are regularly victimized by the South African police,the army, and by guards at detention facilities. Detention conditions for migrants awaiting deportation are substandard and overcrowded. South Africa's treatment of refugees is also troubling, and fails to conform with international standards. South Africa still lacks refugee legislation. The current ad-hoc system for deciding asylum cases is characterized by pervasive bribery and corruption, arbitrary decisions, an inadequate appeals process, and long waiting periods.