]> andersk Git - moira.git/commitdiff
Fixed membership deletion code.
authorprobe <probe>
Mon, 8 Jun 1992 16:57:24 +0000 (16:57 +0000)
committerprobe <probe>
Mon, 8 Jun 1992 16:57:24 +0000 (16:57 +0000)
Changed Moira hidden groups to still allow anyuser to stat the group.

incremental/afs.c

index b38347bc023e5eb4eeae80b34ef5a63078b11073..7e7796b567c24c265cc10114e35081e659f9f891 100644 (file)
@@ -225,7 +225,7 @@ int afterc;
        if (ahide != bhide) {
            code = pr_SetFieldsEntry
                (-agid, PR_SF_ALLBITS,
-                (ahide ? PRP_STATUS_MEM : PRP_GROUP_DEFAULT) >> PRIVATE_SHIFT,
+                (ahide ? PRP_STATUS_ANY : PRP_GROUP_DEFAULT) >> PRIVATE_SHIFT,
                 0 /*ngroups*/, 0 /*nusers*/);
            if (code) {
                critical_alert("incremental",
@@ -259,7 +259,7 @@ int afterc;
        if (ahide) {
            code = pr_SetFieldsEntry
                (-agid, PR_SF_ALLBITS,
-                (ahide ? PRP_STATUS_MEM : PRP_GROUP_DEFAULT) >> PRIVATE_SHIFT,
+                (ahide ? PRP_STATUS_ANY : PRP_GROUP_DEFAULT) >> PRIVATE_SHIFT,
                 0 /*ngroups*/, 0 /*nusers*/);
            if (code) {
                critical_alert("incremental",
@@ -313,7 +313,7 @@ int afterc;
     if (afterc) 
        edit_group(1, after[LM_LIST], after[LM_TYPE], after[LM_MEMBER]);
     if (beforec)
-       edit_group(0, after[LM_LIST], after[LM_TYPE], after[LM_MEMBER]);
+       edit_group(0, before[LM_LIST], before[LM_TYPE], before[LM_MEMBER]);
 }
 
 
This page took 0.050097 seconds and 5 git commands to generate.