]> andersk Git - moira.git/blobdiff - afssync/sync.qc
Don't bother with the higher level ReadEntry/WriteEntry routines
[moira.git] / afssync / sync.qc
index a35268a4fdd52a874b36d43d1e53b28062035915..0af616538d63ce6c6055b04c4bd38185dc9fcfe1 100644 (file)
@@ -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,
This page took 0.033243 seconds and 4 git commands to generate.