Tweaked parse_chmod() so that it takes a pointer to an existing list