]> andersk Git - moira.git/commitdiff
Attempt to preserve hidden status on all groups (not just those created)
authorprobe <probe>
Sun, 7 Jun 1992 04:33:22 +0000 (04:33 +0000)
committerprobe <probe>
Sun, 7 Jun 1992 04:33:22 +0000 (04:33 +0000)
Enter half-registered users into prdb (like Moira would)

afssync/sync.qc

index f443c34003227a59268a92e6c74cc217b1dd06f4..2421351584616e4e4a8646bb694d1d0440411c70 100644 (file)
@@ -150,7 +150,7 @@ do_passwd()
     users = create_hash(10000);
 ##  range of u is users
 ##  retrieve (login = u.#login, uid = u.#uid, id = u.users_id)
-##     where u.#status = 1 {
+##     where u.#status = 1 or u.#status = 2 {
            strtrim(login);
            hash_store(users, id, uid);
            status = PR_INewEntry(NULL, login, uid, 0);
@@ -189,14 +189,12 @@ do_groups()
            status = PR_INewEntry(NULL, namebuf, -gid, SYSADMINID);
            if (status)
                prserror(status, "adding list %s gid %d", namebuf, -gid);
-           else {
-               if (hide) {
-                   status = PR_SetFieldsEntry
-                       (NULL/*call*/, -gid,
-                        PR_SF_ALLBITS/*mask*/,
-                        PRP_STATUS_MEM >> PRIVATE_SHIFT /*flags*/,
-                        0/*ngroups*/, 0/*nusers*/, 0/*spare1*/, 0/*spare2*/);
-               }
+           if (hide) {
+               status = PR_SetFieldsEntry
+                   (NULL/*call*/, -gid,
+                    PR_SF_ALLBITS/*mask*/,
+                    PRP_STATUS_MEM >> PRIVATE_SHIFT /*flags*/,
+                    0/*ngroups*/, 0/*nusers*/, 0/*spare1*/, 0/*spare2*/);
                if (status)
                    prserror(status, "setting flags on list %s", namebuf);
            }
This page took 0.040746 seconds and 5 git commands to generate.