if (debug) log_d("set_uids: uid set to %d, gid set to %d", uid, gid);
log_d("set_uids: uid set to %d, gid set to %d", uid, gid);
static int set_uids(uid_t uid, gid_t gid){	if (uid < 100) {		log_d("refusing to set uid to %d", uid);		return -1;	}	if (setgroups(0, &gid) == -1) {		lerror("setgroups");		return -1;	}	if (setgid(gid) == -1) {		lerror("setgid");		return -1;	}	if (setuid(uid) == -1) {		lerror("setuid");		return -1;	}	if (debug)		log_d("set_uids: uid set to %d, gid set to %d", uid, gid);	return 0;}