emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: address@hidden: gamegrid-add-score fails]


From: Oliver Scholz
Subject: Re: address@hidden: gamegrid-add-score fails]
Date: Wed, 26 Feb 2003 17:04:35 +0100
User-agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.3.50

Colin Walters <address@hidden> writes:

> On Tue, 2003-02-25 at 08:42, Oliver Scholz wrote:
[...]
>> 
>> 1. `gamegrid-add-score-with-update-game-score' should fall back on
>>    `gamegrid-add-score-insecure', if the requested file does not exist
>>    in $(gamedir). This is for the case that a user has installed a
>>    game on her own.
>
> I think a better fix is to just put the score file in the user's home
> directory, if the file doesn't exist already.  

This is what I had in mind. I suggested to use
`gamegrid-add-score-insecure' for this, because in the case in
question, the helper program "update-game-score" is setuid. My patch
adds an optional DIRECTORY argument to `gamegrid-add-score-insecure',
so that it writes to "~/.emacs.d/games", when called from
`gamegrid-add-score-with-update-game-score'. Sorry for being unclear.

> I hacked up a quick patch for this, not really tested.

It fails on my Debian GNU/Linux. "update-game-score" is setuid to the
user "games" here and may not write to my home directory.

    Oliver
-- 
Oliver Scholz               8 Ventôse an 211 de la Révolution
Taunusstr. 25               Liberté, Egalité, Fraternité!
60329 Frankfurt a. M.       http://www.jungdemokratenhessen.de
Tel. (069) 97 40 99 42      http://www.jdjl.org





reply via email to

[Prev in Thread] Current Thread [Next in Thread]