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: backup method Date: Thu, 03 Feb 2005 01:40:16 -0500 Message-ID: References: <20050127000210.GA6167@boetes.org> <200501270045.j0R0jIq06197@raven.dms.auburn.edu> <20050127015432.GB6167@boetes.org> <20050128035618.GI6167@boetes.org> <20050129060851.GQ6167@boetes.org> <200501291842.j0TIgVw09020@raven.dms.auburn.edu> <20050129225259.GT6167@boetes.org> <87r7k3zti5.fsf-monnier+emacs@gnu.org> <874qgyxw24.fsf-monnier+emacs@gnu.org> <878y681iga.fsf-monnier+emacs@gnu.org> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1107413133 19295 80.91.229.2 (3 Feb 2005 06:45:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 3 Feb 2005 06:45:33 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 03 07:45:32 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Cwajw-0004pw-Qj for ged-emacs-devel@m.gmane.org; Thu, 03 Feb 2005 07:45:21 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CwaxD-0008TK-HQ for ged-emacs-devel@m.gmane.org; Thu, 03 Feb 2005 01:59:03 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Cwaw0-0007oJ-KP for emacs-devel@gnu.org; Thu, 03 Feb 2005 01:57:48 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Cwavy-0007n6-JA for emacs-devel@gnu.org; Thu, 03 Feb 2005 01:57:46 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Cwavx-0007mM-Py for emacs-devel@gnu.org; Thu, 03 Feb 2005 01:57:45 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Cwahp-0007cl-Aa for emacs-devel@gnu.org; Thu, 03 Feb 2005 01:43:09 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1Cwaf2-0007kg-49; Thu, 03 Feb 2005 01:40:16 -0500 Original-To: Stefan Monnier In-reply-to: <878y681iga.fsf-monnier+emacs@gnu.org> (message from Stefan Monnier on Tue, 01 Feb 2005 09:09:53 -0500) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org X-MailScanner-To: ged-emacs-devel@m.gmane.org Xref: main.gmane.org gmane.emacs.devel:32789 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:32789 Any reason why you didn't use make-temp-file? make-temp-file creates the file empty. Between that and writing the data into it, someone else could delete the file and put in a symlink. The code I wrote solves that problem.