]> git.eshelyaron.com Git - emacs.git/commitdiff
(snake-score-file): Put in home dir, not in /tmp.
authorRichard M. Stallman <rms@gnu.org>
Sun, 3 Mar 2002 14:13:14 +0000 (14:13 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 3 Mar 2002 14:13:14 +0000 (14:13 +0000)
lisp/play/snake.el

index 2367705a68f5a6ce336de34232986d2863f204a0..d99d342906b0f8b9abf52dbbc8e0a5c4cad10673 100644 (file)
 (defvar snake-score-y snake-height
   "Y position of score.")
 
-(defvar snake-score-file (concat temporary-file-directory "snake-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 snake-score-file "~/.snake-scores")
   "File for holding high scores.")
 
 ;; ;;;;;;;;;;;;; display options ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;