The sheriff of a California county where thousands of people were evacuated as a damaged spillway on a huge dam threatened to fail says repairs may need to be made before residents are allowed to go home.