else
hash_store(groups, lid, aid);
- /* If this list is hidden, set the pts entry to be s---- */
+ /* Set modes on hidden lists (S----) */
if (hide && (status==0 || status==PRIDEXIST)) {
gpos = FindByID(0, aid);
- status = pr_ReadEntry(0, 0, gpos, &gentry);
+ status = pr_Read(0, 0, gpos, &gentry, sizeof(gentry));
if (!status) {
- gentry.flags = PRGRP|PRACCESS|PRP_STATUS_ANY;
- status = pr_WriteEntry(0, 0, gpos, &gentry);
+ gentry.flags = htonl(PRGRP|PRACCESS|PRP_STATUS_ANY);
+ status = pr_Write(0, 0, gpos, &gentry, sizeof(gentry));
}
if (status)
fprintf(stderr,