
1. Use REG_NEWLINE, rather than matching "\n". 2. Fix a bug where rm_user_from_groups would mangle group entries in /etc/group when the user to be removed is the only member of the group, by using substring matches.
1. Use REG_NEWLINE, rather than matching "\n". 2. Fix a bug where rm_user_from_groups would mangle group entries in /etc/group when the user to be removed is the only member of the group, by using substring matches.