-/* $OpenBSD: vm_agentx.c,v 1.1 2022/09/13 10:28:19 martijn Exp $ */
+/* $OpenBSD: vm_agentx.c,v 1.2 2024/02/02 14:58:02 dv Exp $ */
/*
* Copyright (c) 2022 Martijn van Duren <martijn@openbsd.org>
* group permissions.
*/
if ((grp = getgrnam(AGENTX_GROUP)) == NULL)
- fatal("getgrnam");
+ fatal("failed to get group: %s", AGENTX_GROUP);
ps->ps_pw->pw_gid = grp->gr_gid;
proc_run(ps, p, procs, nitems(procs), vm_agentx_run, NULL);
{
static struct vmop_info_result *vir = NULL;
static struct vmop_info_result *mvir = NULL;
- struct vmd *env = p->p_ps->ps_env;
+ struct vmd *env = p->p_ps->ps_env;
struct vmop_info_result *tvir;
struct agentx_object *reqObject;
static size_t nvir = 0;
if ((vmMIB = agentx_region(ctx, AGENTX_OID(VMMIB), 1)) == NULL)
fatal("agentx_region vmMIB");
-
+
if ((vmIndex = agentx_index_integer_dynamic(vmMIB,
AGENTX_OID(VMINDEX))) == NULL)
fatal("agentx_index_integer_dynamic");