]> andersk Git - moira.git/commitdiff
This change escaped before its time.
authorzacheiss <zacheiss>
Tue, 26 Feb 2008 22:03:54 +0000 (22:03 +0000)
committerzacheiss <zacheiss>
Tue, 26 Feb 2008 22:03:54 +0000 (22:03 +0000)
regtape/common.pc

index 55ee0691658c69e9b4a96d35ef93e39bb6d37c66..74299bcaaf4541379a50a1db4a1381b763fdc59a 100644 (file)
@@ -68,7 +68,7 @@ void process_entry(struct entry *e, int secure)
   char ophone[USERS_OFFICE_PHONE_SIZE], dept[USERS_DEPARTMENT_SIZE];
   char haddr[USERS_HOME_ADDR_SIZE], hphone[USERS_HOME_PHONE_SIZE];
   char dfirst[USERS_FIRST_SIZE], dlast[USERS_LAST_SIZE];
-  char dmiddle[USERS_MIDDLE_SIZE], fullname[USERS_FULLNAME_SIZE];
+  char dmiddle[USERS_MIDDLE_SIZE];
   int id, status, fmodby, xnlen = USERS_XNAME_SIZE - 1;
   EXEC SQL END DECLARE SECTION;
 
@@ -86,9 +86,9 @@ void process_entry(struct entry *e, int secure)
 
   /* Get user info */
   EXEC SQL SELECT users_id, first, last, middle, type, office_addr,
-    office_phone, home_addr, home_phone, fullname, department, status, fmodby
+    office_phone, home_addr, home_phone, department, status, fmodby
     INTO :id, :dfirst, :dlast, :dmiddle, :type, :oaddr,
-    :ophone, :haddr, :hphone, :fullname, :dept, :status, :fmodby
+    :ophone, :haddr, :hphone, :dept, :status, :fmodby
     FROM users
     WHERE clearid = :sid AND status != 3;
   if (sqlfail())
@@ -203,15 +203,6 @@ void process_entry(struct entry *e, int secure)
       strlcpy(dept, e->dept, USERS_DEPARTMENT_SIZE);
     }
 
-  if (strncmp(strtrim(fullname), e->name, USERS_FULLNAME_SIZE - 1) &&
-      (*fullname || fmodby != id))
-    {
-      changed++;
-      com_err(whoami, 0, "Fullname for %s %s changed from \"%s\" to \"%s\"",
-             first, last, fullname, e->name);
-      strlcpy(fullname, e->name, USERS_FULLNAME_SIZE);
-    }
-
   if (changed)
     {
       com_err(whoami, 0, "updating finger for %s %s", first, last);
@@ -219,8 +210,8 @@ void process_entry(struct entry *e, int secure)
        SET office_addr = NVL(:oaddr, CHR(0)),
        office_phone = NVL(:ophone, CHR(0)), home_addr = NVL(:haddr, CHR(0)),
        home_phone = NVL(:hphone, CHR(0)), department = NVL(:dept, CHR(0)),
-       fullname = NVL(:fullname, CHR(0)), fmodtime = SYSDATE, fmodby = :who,
-       fmodwith = :prog, xname = NVL(SUBSTR(:name, 0, :xnlen), CHR(0)),
+       fmodtime = SYSDATE, fmodby = :who, fmodwith = :prog,
+       xname = NVL(SUBSTR(:name, 0, :xnlen), CHR(0)),
        xdept = NVL(:dept, CHR(0)), xtitle = NVL(:xtitle, CHR(0)),
        xaddress = NVL(:xaddr, CHR(0)), xphone1 = NVL(:xphone1, CHR(0)),
        xphone2 = NVL(:xphone2, CHR(0)), xmodtime = SYSDATE
This page took 0.13901 seconds and 5 git commands to generate.