X-Git-Url: http://andersk.mit.edu/gitweb/moira.git/blobdiff_plain/d55429b2e24aabf43d6a933bd2af5660c35c1972..134f03ec7db8f112f370e9588e38a677ac62a2c8:/gen/warehouse.pc diff --git a/gen/warehouse.pc b/gen/warehouse.pc index 6c1e48c8..4f8c0a11 100644 --- a/gen/warehouse.pc +++ b/gen/warehouse.pc @@ -45,8 +45,6 @@ int main(int argc, char **argv) char *outf = NULL, outft[MAXPATHLEN]; char control_fn[MAXPATHLEN], cmd[256]; FILE *f; - struct stat sb; - int flag1; int records = 0; EXEC SQL BEGIN DECLARE SECTION; char login[USERS_LOGIN_SIZE]; @@ -72,15 +70,6 @@ int main(int argc, char **argv) if (argc == 2) { - if (stat(argv[1], &sb) == 0) - { - if (ModDiff(&flag1, "users", sb.st_mtime) == 0 && flag1 < 0) - { - fprintf(stderr, "File %s does not need to be rebuilt.\n", - argv[1]); - exit(MR_NO_CHANGE); - } - } outf = argv[1]; sprintf(outft, "%s/username_id.map", warehouse_dir); if ((out = open(outft, O_WRONLY|O_APPEND|O_CREAT|O_TRUNC, 0666)) < 0) @@ -107,7 +96,7 @@ int main(int argc, char **argv) SELECT login, clearid, first, last, middle FROM users WHERE (status = 1 or status = 2 or status = 5 OR - status = 6 or status = 7); + status = 6 or status = 7 or status = 9); EXEC SQL OPEN x; while (1) {