From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: many packages write to `temporary-file-directory' insecurely Date: Mon, 11 Mar 2002 02:01:14 -0700 (MST) Sender: emacs-devel-admin@gnu.org Message-ID: <200203110901.g2B91Ej04386@wijiji.santafe.edu> References: <1014945351.23435.102.camel@space-ghost> <1015103550.7365.17.camel@space-ghost> <200203031718.g23HIKt23295@rum.cs.yale.edu> <200203042340.g24NexL00497@aztec.santafe.edu> <200203051520.g25FKbw01899@rum.cs.yale.edu> <1015389617.25883.37.camel@space-ghost> <1015400126.18074.0.camel@space-ghost> <200203080908.g28986Z02524@wijiji.santafe.edu> <1015757200.18074.71.camel@space-ghost> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1015839026 24011 80.91.224.249 (11 Mar 2002 09:30:26 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 11 Mar 2002 09:30:26 +0000 (UTC) Cc: emacs-devel@gnu.org Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16kM8P-0006FA-00 for ; Mon, 11 Mar 2002 10:30:25 +0100 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 16kMA4-00086V-00 for ; Mon, 11 Mar 2002 10:32:08 +0100 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16kM8F-00019N-00; Mon, 11 Mar 2002 04:30:15 -0500 Original-Received: from pele.santafe.edu ([192.12.12.119]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16kLgC-0008OC-00; Mon, 11 Mar 2002 04:01:16 -0500 Original-Received: from wijiji.santafe.edu (wijiji [192.12.12.5]) by pele.santafe.edu (8.11.6+Sun/8.9.3) with ESMTP id g2B91Su18044; Mon, 11 Mar 2002 02:01:28 -0700 (MST) Original-Received: (from rms@localhost) by wijiji.santafe.edu (8.11.6+Sun/8.9.3) id g2B91Ej04386; Mon, 11 Mar 2002 02:01:14 -0700 (MST) X-Authentication-Warning: wijiji.santafe.edu: rms set sender to rms@wijiji using -f Original-To: walters@debian.org In-reply-to: <1015757200.18074.71.camel@space-ghost> (message from Colin Walters on 10 Mar 2002 05:46:40 -0500) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:1850 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:1850 > One way to solve this problem is by having Emacs installation create > the desired files under /var/games/emacs, make them world-writable, > and make /var/games/emacs read-only. The problem I see with this is that we can't use `rename-file', and thus we lose atomicity of score file updates. If multiple users are concurrently reading and writing the same file, it will eventually be corrupted. You are right. How do other game programs handle this? _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://mail.gnu.org/mailman/listinfo/emacs-devel