changeset 43650:93a9551db080

(snake-score-file): Put in home dir, not in /tmp.
author Richard M. Stallman <rms@gnu.org>
date Sun, 03 Mar 2002 14:13:14 +0000
parents 662351ad5213
children 3075554223d1
files lisp/play/snake.el
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/play/snake.el	Sun Mar 03 13:08:14 2002 +0000
+++ b/lisp/play/snake.el	Sun Mar 03 14:13:14 2002 +0000
@@ -82,7 +82,10 @@
 (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 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;