validate_id_str
if (!validate_id_str(user)) {
if (!validate_id_str(group)) {
extern int validate_id_str(const char *);