[6190] in Athena Bugs

home help back first fref pref prev next nref lref last post

Re: EOS Turnin Bug: Turning in a file, rather than from the buffer deletes the file.

daemon@ATHENA.MIT.EDU (Bill Cattey)
Tue Oct 9 17:58:38 1990

Date: Tue,  9 Oct 1990 17:58:04 -0400 (EDT)
From: Bill Cattey <wdc@ATHENA.MIT.EDU>
To: bugs@ATHENA.MIT.EDU
Cc: aida@ATHENA.MIT.EDU, brlewis@ATHENA.MIT.EDU, lavin@ATHENA.MIT.EDU,

I am mortified that this bug existed and took so long to find.
I had heard a couple of reports of people losing files when they did
turnin, but I had been, up to now, unable to duplicate the problem.

Here is the problem:

When you turn in a file rather than the contents of the current editor
window, that file is deleted.

I have fixed the problem in the friendly testers version of andrew, and
it will be correct in the next Athena release.

Until the next Athena release, your work-around is to copy the file you
want to turn in to a temporary file, and turn that one in.

The code did work very hard not to get caught with this problem:
there was a flag turninfromfile which was initialized, and tested to
make sure that only a temporary file would be deleted.  Unfortunately,
the flag was never correctly set when the file-based turnin ran.

Dot, Anne, and Custer:  How shall we take care of getting the word out
on this bug?

Aida:  You were right!  I just wasn't clever enough to find the test
case that made the bug fail.

-Bill Cattey.
Embarassed, that I let this bug crawl about for so long.

home help back first fref pref prev next nref lref last post