diff options
| author | Richard M. Stallman | 2002-03-03 14:17:47 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2002-03-03 14:17:47 +0000 |
| commit | 9caf26fececfca2072b59e6a1cc2a431155364d7 (patch) | |
| tree | 30a041feef50b4be7bcdb547b9815164661fe1c4 | |
| parent | 279b254c999302cbaace3aa924a6193adc1ddf90 (diff) | |
| download | emacs-9caf26fececfca2072b59e6a1cc2a431155364d7.tar.gz emacs-9caf26fececfca2072b59e6a1cc2a431155364d7.zip | |
(tetris-score-file): Put in home dir, not in /tmp.
| -rw-r--r-- | lisp/ChangeLog | 2 | ||||
| -rw-r--r-- | lisp/play/tetris.el | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 95a29ae4926..f0a878aa946 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | 2002-03-03 Richard M. Stallman <rms@gnu.org> | 1 | 2002-03-03 Richard M. Stallman <rms@gnu.org> |
| 2 | 2 | ||
| 3 | * play/tetris.el (tetris-score-file): Put in home dir, not in /tmp. | ||
| 4 | |||
| 3 | * play/snake.el (snake-score-file): Put in home dir, not in /tmp. | 5 | * play/snake.el (snake-score-file): Put in home dir, not in /tmp. |
| 4 | 6 | ||
| 5 | * play/gamegrid.el (gamegrid-set-font, gamegrid-setup-face) | 7 | * play/gamegrid.el (gamegrid-set-font, gamegrid-setup-face) |
diff --git a/lisp/play/tetris.el b/lisp/play/tetris.el index 44968431497..e0bd3f99aa8 100644 --- a/lisp/play/tetris.el +++ b/lisp/play/tetris.el | |||
| @@ -150,7 +150,10 @@ Element 0 is ignored." | |||
| 150 | (defvar tetris-score-y (+ tetris-next-y 6) | 150 | (defvar tetris-score-y (+ tetris-next-y 6) |
| 151 | "Y position of score.") | 151 | "Y position of score.") |
| 152 | 152 | ||
| 153 | (defvar tetris-score-file (concat temporary-file-directory "tetris-scores") | 153 | ;; It is not safe to put this in /tmp. |
| 154 | ;; Someone could make a symlink in /tmp | ||
| 155 | ;; pointing to a file you don't want to clobber. | ||
| 156 | (defvar tetris-score-file "~/.tetris-scores") | ||
| 154 | ;; anybody with a well-connected server want to host this? | 157 | ;; anybody with a well-connected server want to host this? |
| 155 | ;(defvar tetris-score-file "/anonymous@ftp.pgt.com:/pub/cgw/tetris-scores" | 158 | ;(defvar tetris-score-file "/anonymous@ftp.pgt.com:/pub/cgw/tetris-scores" |
| 156 | "File for holding high scores.") | 159 | "File for holding high scores.") |