[318] in Coldmud discussion meeting

root meeting help first previous next last

Logging and $sys hacks.

daemon@ATHENA.MIT.EDU (Tue May 24 14:28:42 1994 )

From: BRANDON@cc.usu.edu
Date: Tue, 24 May 1994 12:23:24 -0600 (MDT)
To: coldstuff@MIT.EDU
X-Vms-To: COLDSTUFF

I just hacked $sys.compile() on the Cold Dark to:

@program $sys.compile
arg code, name;
var line;

.perms(sender());
line = "SYSTEM: ." + tostr(name) + "() MODIFIED ";
line = line + $eng_time.ldate('mdy, 'dash) + "/" + $eng_time.ltime();
.log(line + " by " + sender().name('ref));
return compile(code, name);
.

Looks like:

SYSTEM: .compile() MODIFIED 5-24-94/12:22 pm by Brandon ($user_brandon)

What this means is that ANY change to $sys through the normal channels are
logged before they occur.  This does not allow for if a careless admin leaves
another method which writes to $sys open.

-Brandon-