#include <sys/stat.h>
#include <sys/time.h>
#include <ctype.h>
+#include <string.h>
EXEC SQL INCLUDE sqlca;
extern int errno;
strtrim(login);
strtrim(id);
if (isdigit(id[0]))
- fprintf(out, "%s %s@ATHENA.MIT.EDU\n", id, login);
+ fprintf(out, "%s %s@MIT.EDU\n", id, login);
}
EXEC SQL CLOSE x;
!strcasecmp(".local", string + i - 6)) {
string[i-6] = 0;
fprintf(out, "%s %s.mit.edu\n", id, string);
+ } else if ( !strchr(string, '@') ) {
+ fprintf(out, "%s %s@mit.edu\n", id, string);
} else
fprintf(out, "%s %s\n", id, string);
}
sqlerr:
com_err(whoami, MR_INGRES_ERR, " code %d\n", sqlca.sqlcode);
+#ifsql INGRES
+ if (sqlca.sqlcode == 17700 || sqlca.sqlcode == -37000)
+ exit(MR_DEADLOCK);
+#endsql
critical_alert("DCM", "Pobox build encountered INGRES ERROR %d",
sqlca.sqlcode);
exit(MR_INGRES_ERR);