Can a mother who had a number of affairs no job and no permanent home be granted sole custody of a child?

Yes. If the father is upset about it - he should contact a family law attorney.

steveshorr.com