From: probe Date: Sun, 5 Jul 1992 13:18:24 +0000 (+0000) Subject: Don't bother with the higher level ReadEntry/WriteEntry routines X-Git-Tag: release77~497 X-Git-Url: http://andersk.mit.edu/gitweb/moira.git/commitdiff_plain/725411bcb4b27c1bc170cbf0b06c767efd2e02e2 Don't bother with the higher level ReadEntry/WriteEntry routines since we only are toggling a couple bits... --- diff --git a/afssync/sync.qc b/afssync/sync.qc index a35268a4..0af61653 100644 --- a/afssync/sync.qc +++ b/afssync/sync.qc @@ -140,13 +140,13 @@ do_groups() 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,