Enantiopure 1,4-diols and 1,4-aminoalcohols via stereoselective acyclic sulfoxide-sulfenate rearrangement.