/* First process the hooks. */
SLIST_FOREACH(hook, &sudo_hook_setenv_list, entries) {
rc = hook->u.setenv_fn(name, value, overwrite, hook->closure);
- if (rc == SUDO_HOOK_RET_STOP || SUDO_HOOK_RET_ERROR)
+ if (rc == SUDO_HOOK_RET_STOP || rc == SUDO_HOOK_RET_ERROR)
break;
}
return rc;
/* First process the hooks. */
SLIST_FOREACH(hook, &sudo_hook_putenv_list, entries) {
rc = hook->u.putenv_fn(string, hook->closure);
- if (rc == SUDO_HOOK_RET_STOP || SUDO_HOOK_RET_ERROR)
+ if (rc == SUDO_HOOK_RET_STOP || rc == SUDO_HOOK_RET_ERROR)
break;
}
return rc;
/* First process the hooks. */
SLIST_FOREACH(hook, &sudo_hook_getenv_list, entries) {
rc = hook->u.getenv_fn(name, &val, hook->closure);
- if (rc == SUDO_HOOK_RET_STOP || SUDO_HOOK_RET_ERROR)
+ if (rc == SUDO_HOOK_RET_STOP || rc == SUDO_HOOK_RET_ERROR)
break;
}
if (val != NULL)
/* First process the hooks. */
SLIST_FOREACH(hook, &sudo_hook_unsetenv_list, entries) {
rc = hook->u.unsetenv_fn(name, hook->closure);
- if (rc == SUDO_HOOK_RET_STOP || SUDO_HOOK_RET_ERROR)
+ if (rc == SUDO_HOOK_RET_STOP || rc == SUDO_HOOK_RET_ERROR)
break;
}
return rc;