if (getuid() != 0) {
if (getuid() != geteuid()) {
ERR("UID does not match effective UID.");
+ ret = CMD_ERROR;
goto error;
} else if (getgid() != getegid()) {
ERR("GID does not match effective GID.");
+ ret = CMD_ERROR;
goto error;
}
}
if (!found) {
MSG("Session name %s not found", session_name);
+ ret = CMD_ERROR;
goto free_sessions;
}