From: Richard M. Stallman Date: Sun, 3 Mar 2002 14:13:14 +0000 (+0000) Subject: (snake-score-file): Put in home dir, not in /tmp. X-Git-Tag: ttn-vms-21-2-B4~16386 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=35ce93ebfd3e6af66658687773a00846b35ac419;p=emacs.git (snake-score-file): Put in home dir, not in /tmp. --- diff --git a/lisp/play/snake.el b/lisp/play/snake.el index 2367705a68f..d99d342906b 100644 --- a/lisp/play/snake.el +++ b/lisp/play/snake.el @@ -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 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;