From 35ce93ebfd3e6af66658687773a00846b35ac419 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sun, 3 Mar 2002 14:13:14 +0000 Subject: [PATCH] (snake-score-file): Put in home dir, not in /tmp. --- lisp/play/snake.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -- 2.39.5