diff lisp/play/snake.el @ 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 dc17128932c4
children 1ae60187a39d
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 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;