]> andersk Git - moira.git/commitdiff
fix problem with truncated names; consider LECTURErs faculty; don't change
authormar <mar>
Wed, 14 Feb 1990 10:42:14 +0000 (10:42 +0000)
committermar <mar>
Wed, 14 Feb 1990 10:42:14 +0000 (10:42 +0000)
people away from SIPB; make new STAFF accounts registerable

regtape/employee.dc

index cfd198392e7e9c5b815e9860e6e0228d7d3ce1b0..6a83b7fec854d8030e34b399f20e1962882ab01f 100644 (file)
@@ -143,7 +143,7 @@ FILE *in;
 
     if (fgets(buf, sizeof(buf), in) == NULL)
       return((struct entry *)NULL);
-    buf[LEN_NAME] = 0;
+    buf[LOC_NAME + LEN_NAME] = 0;
     p = index(&buf[LOC_NAME], ',');
     if (p)
       *p = 0;
@@ -188,7 +188,7 @@ FILE *in;
     e.class = "MITS";
     if (!strcmp(e.dept, "PROJECT ATHENA"))
       e.class = "STAFF";
-    else if (substr(e.title, "PROF"))
+    else if (substr(e.title, "PROF") || substr(e.title, "LECTURE"))
       e.class = "FACULTY";
     else if (!strcmp(e.title, "VISITING SCIENTIST"))
       e.class = "VSCIENTI";
@@ -223,7 +223,8 @@ struct entry *e;
        newuser(e);
        return;
     }
-    if (strcmp(e->class, strtrim(class)) && strcmp(class, "STAFF")) {
+    if (strcmp(e->class, strtrim(class)) &&
+       strcmp(class, "STAFF") && strcmp(class, "SIPB")) {
        com_err(whoami, 0, "updating class for %s %s from %s to %s",
                first, last, class, e->class);
        strcpy(class, e->class);
@@ -331,7 +332,7 @@ struct entry *e;
     else
       sprintf(fullname, "%s %s", first, last);
     st = US_NOT_ALLOWED;
-    if (!strcmp(e->class, "FACULTY"))
+    if (!strcmp(e->class, "FACULTY") || !strcmp(e->class, "STAFF"))
       st = US_NO_LOGIN_YET;
     
 ##  append users (#login = login, users_id = id, #uid = uid, shell = "/bin/csh",
This page took 0.030635 seconds and 5 git commands to generate.