In that case, the mother has sole legal and physical custody unless and until the court order provides otherwise. This occurs even if the father has a formally acknowledged paternity.  However, there is no prejudice to father because of this and the courts.