changeset 43653:dd7b3395a514

(tetris-score-file): Put in home dir, not in /tmp.
author Richard M. Stallman <rms@gnu.org>
date Sun, 03 Mar 2002 14:17:41 +0000
parents 9bc62c53e65d
children a6ae9785d3b6
files lisp/play/tetris.el
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/play/tetris.el	Sun Mar 03 14:14:38 2002 +0000
+++ b/lisp/play/tetris.el	Sun Mar 03 14:17:41 2002 +0000
@@ -150,7 +150,10 @@
 (defvar tetris-score-y (+ tetris-next-y 6)
   "Y position of score.")
 
-(defvar tetris-score-file (concat temporary-file-directory "tetris-scores")
+;; It is not safe to put this in /tmp.
+;; Someone could make a symlink in /tmp 
+;; pointing to a file you don't want to clobber.
+(defvar tetris-score-file "~/.tetris-scores")
 ;; anybody with a well-connected server want to host this?
 ;(defvar tetris-score-file "/anonymous@ftp.pgt.com:/pub/cgw/tetris-scores"
   "File for holding high scores.")