ni->needwrite = needwrite;
return (0);
}
+ NI_INIT(&nl);
if (ni_lookupprop(ni, &root, NAME_MASTER, &nl) != NI_OK) {
ni->needwrite = needwrite;
return (0);
}
*sep++ = 0;
master = nl.ninl_val[0];
+ NI_INIT(&idl);
if (ni_lookup(ni, &root, NAME_NAME, NAME_MACHINES, &idl) != NI_OK) {
ni->needwrite = needwrite;
ni_namelist_free(&nl);
}
id.nii_object = idl.niil_val[0];
ni_idlist_free(&idl);
+ NI_INIT(&idl);
if (ni_lookup(ni, &id, NAME_NAME, master, &idl) != NI_OK) {
ni_namelist_free(&nl);
ni->needwrite = needwrite;
}
id.nii_object = idl.niil_val[0];
ni_idlist_free(&idl);
+ NI_INIT(&nl);
if (ni_lookupprop(ni, &id, NAME_IP_ADDRESS, &nl) != NI_OK) {
return (0);
}
int i;
id.nii_object = ido;
+ NI_INIT(&nl);
if (ni_lookupprop(ni, &id, NAME_IP_ADDRESS, &nl) != NI_OK) {
return (0);
}
return(0);
}
+ NI_INIT(&ids);
if (ni_lookup(ni, &id, NAME_NAME, NAME_MACHINES, &ids) != NI_OK) {
return (0);
}
id.nii_object = ids.niil_val[0];
ni_idlist_free(&ids);
+ NI_INIT(&entries);
if (ni_list(ni, &id, NAME_SERVES, &entries) != NI_OK) {
return (0);
}
if (ni_root(ni, &id) != NI_OK) {
return(0);
}
+ NI_INIT(&ids);
if (ni_lookup(ni, &id, NAME_NAME, NAME_MACHINES, &ids) != NI_OK) {
return (0);
}
id.nii_object = ids.niil_val[0];
ni_idlist_free(&ids);
+ NI_INIT(&ids);
if (ni_lookup(ni, &id, NAME_NAME, hname, &ids) != NI_OK) {
return (0);
}
if (ni_root(ni, &id) != NI_OK) {
return(NI_NOUSER);
}
+ NI_INIT(&ids);
if (ni_lookup(ni, &id, NAME_NAME, NAME_USERS, &ids) != NI_OK) {
return (NI_NOUSER);
}
id.nii_object = ids.niil_val[0];
ni_idlist_free(&ids);
+ NI_INIT(&ids);
if (ni_lookup(ni, &id, NAME_NAME, user, &ids) != NI_OK) {
return (NI_NOUSER);
}
id.nii_object = ids.niil_val[0];
ni_idlist_free(&ids);
+ NI_INIT(&nl);
if (ni_lookupprop(ni, &id, NAME_UID, &nl) != NI_OK) {
return (NI_NOUSER);
}