]> andersk Git - moira.git/commitdiff
Print out the ending time so duration computations can be done.
authorprobe <probe>
Fri, 5 Feb 1993 03:30:47 +0000 (03:30 +0000)
committerprobe <probe>
Fri, 5 Feb 1993 03:30:47 +0000 (03:30 +0000)
Added commented-out "kerberos" membership code (incomplete).

afssync/sync.qc

index f634ef674b0892f0ab77fd23222e1403f515cfd2..3910eb8cdf00d129c5dbb6f61cfe084546d75e59 100644 (file)
@@ -51,6 +51,7 @@ char **argv;
     
     int status;
     int ingerr();
+    long t;
 
     strcpy(db, "sms");
 
@@ -85,6 +86,10 @@ char **argv;
     do_passwd();
     do_groups();
 
+    t = time(0);
+    fprintf(stderr, "Done (%d users, %d groups, %d members): %s",
+           ucount, gcount, mcount, ctime(&t));
+
 ##  end transaction
 ##  exit
 
@@ -96,7 +101,7 @@ do_passwd()
 ##{
 ##  char login[9];
 ##  int uid, id, status;
-    int t;
+    long t;
     struct prentry tentry;
     struct entry *u;
 
@@ -136,7 +141,7 @@ do_groups()
     struct member *m;
     struct bucket **p, *b;
     char namebuf[40];
-    int aid, t;
+    long aid, t;
 ##  char name[33];
 ##  int gid, id, lid, hide;
 
@@ -249,14 +254,41 @@ do_groups()
            }
        }
     }
+##}
+
+#if 0
+do_kerberos()
+##{
+    long status, pos;
+    struct prentry gentry, uentry;
+    struct entry *u, *g;
+    struct member *m;
+    struct bucket **p, *b;
+    char namebuf[40];
+    int aid, t;
+##  char name[129];
+##  int gid, id, lid, hide;
 
     t = time(0);
-    fprintf(stderr, "Done (%d users, %d groups, %d members): %s",
-           ucount, gcount, mcount, ctime(&t));
+    fprintf(stderr, "Doing kerberos members: %s", ctime(&t));
 
-##}
+##  range of s is strings
+##  range of m is imembers
+    /* get lock records */
+##  retrieve (name = list.modtime) where list.list_id = 0
+##  retrieve (name = s.modtime) where s.string_id = 0
 
+##  retrieve (lid = m.list_id, id = m.member_id)
+##     where m.member_type = "KERBEROS" {
+       xxx;
+       {
+       }
+##  }
 
+##}
+#endif
+    
+    
 /*
  * ingerr: (supposedly) called when Ingres indicates an error.
  * I have not yet been able to get this to work to intercept a
This page took 0.246586 seconds and 5 git commands to generate.