[1004] in Moira
Change in src/gen/sis.dc
daemon@ATHENA.MIT.EDU (Theodore Y. Ts'o)
Wed Aug 21 17:50:16 1996
Date: Wed, 21 Aug 1996 17:49:54 -0400
From: "Theodore Y. Ts'o" <tytso@MIT.EDU>
To: dkk@MIT.EDU
Cc: moiradev@MIT.EDU, sturner@MIT.EDU, thorne@MIT.EDU
Steve Turner from the Registrar's office, has asked us to make a change
to how we do the Moira extracts for the SIS server. Specifically, the
Registrar's office has asked us to remove the two-week waiting period
before the "extra" instance can be used to access the Registrar's SIS
server.
Could someone (Hi, Dave!) install these changes into Moira sources and
on the Moira server? Steve would really like these changes to be done
soon, so that new incoming freshmen won't have to deal with the 2-week
period. (On the other hand, they won't likely need to use SIS right
away anyway, but...) Is this something we could get done in the next
week or so? Thanks!!
- Ted
--- sis.dc Fri Aug 19 11:10:59 1994
+++ /tmp/sis.dc Wed Aug 21 17:03:53 1996
@@ -36,10 +36,9 @@
struct stat sb;
int flag1;
SigInfo si;
- struct timeval now;
EXEC SQL BEGIN DECLARE SECTION;
char login[9], sig[257], id[17], kname[257];
- int timestamp, cutoff;
+ int timestamp;
struct { char login[12];
char id[12];
char sig[256];
@@ -78,10 +77,6 @@
outf = NULL;
}
- /* the cutoff time is 14 days before now */
- gettimeofday(&now, NULL);
- cutoff = now.tv_sec - 14 * 24 * 60 * 60;
-
/* The following is declarative, not executed,
* and so is dependent on where it is in the file,
* not in the order of execution of statements.
@@ -96,7 +91,7 @@
SELECT u.login, u.clearid, u.signature, u.sigdate, s.string
FROM users u, strings s
WHERE u.status = 1 and u.sigwho = s.string_id and u.sigwho != 0
- and u.secure <= :cutoff and u.secure != 0;
+ and u.secure != 0;
EXEC SQL OPEN x;
while (1) {
EXEC SQL FETCH x INTO :login, :id, :sig, :timestamp, :kname;