[5210] in Athena Bugs

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

EZ .CKP files are dangerous

daemon@ATHENA.MIT.EDU (akagerry@ATHENA.MIT.EDU)
Tue Jun 19 09:58:08 1990

From: akagerry@ATHENA.MIT.EDU
Date: Tue, 19 Jun 90 09:57:54 -0400
To: bugs@ATHENA.MIT.EDU


In release 7.0F on all platforms EZ puts its .CKP files in the
/usr/tmp directory under the name filename.CKP.   This is not good
since many users tend to name the file their term paper is in
something like: paper.txt or ps1.txt, etc.  Thus if user A edits a
file called paper.txt in EZ on workstation W and then within three
days user B edits a file called paper.txt with EZ on workstation W,
user B will get a write error when he tries to write the file
/usr/tmp/paper.txt.CKP, since it already exists and is owned by user
A, and probably not world writable.

A simple solution to this problem would be to prepend the users UID to
the file thus giving a file name like 14608.paper.txt.CKP.  Or the
complete emacs solution could be adopted with file names like:

	#14608.@mit@akagerry@subdirectory@paper.txt#

--Jerry


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