From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Juanma Barranquero" Newsgroups: gmane.emacs.bugs Subject: bug#865: 23.0.60; The directory is unsafe today Date: Wed, 3 Sep 2008 01:25:43 +0200 Message-ID: References: <48BD642C.5050405@gmail.com> <48BD8FA8.6030707@gmail.com> <48BDC0EE.1080104@gmail.com> <48BDC5E4.4080205@gmail.com> <48BDC832.40503@gmail.com> <48BDC9F1.8090105@gmail.com> Reply-To: Juanma Barranquero , 865@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1220399334 12326 80.91.229.12 (2 Sep 2008 23:48:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 2 Sep 2008 23:48:54 +0000 (UTC) Cc: 865@emacsbugs.donarmstrong.com To: "Lennart Borgman (gmail)" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 03 01:49:48 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Kafcw-0003Vk-6R for geb-bug-gnu-emacs@m.gmane.org; Wed, 03 Sep 2008 01:49:38 +0200 Original-Received: from localhost ([127.0.0.1]:50618 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kafbx-0008De-4M for geb-bug-gnu-emacs@m.gmane.org; Tue, 02 Sep 2008 19:48:37 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kafax-0007oz-6G for bug-gnu-emacs@gnu.org; Tue, 02 Sep 2008 19:47:35 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kafaw-0007oK-8v for bug-gnu-emacs@gnu.org; Tue, 02 Sep 2008 19:47:34 -0400 Original-Received: from [199.232.76.173] (port=40554 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kafaw-0007oF-1G for bug-gnu-emacs@gnu.org; Tue, 02 Sep 2008 19:47:34 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:40405) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Kafav-0004u6-Hu for bug-gnu-emacs@gnu.org; Tue, 02 Sep 2008 19:47:33 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m82NlVtv021135; Tue, 2 Sep 2008 16:47:31 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m82NZ30C016465; Tue, 2 Sep 2008 16:35:03 -0700 X-Loop: don@donarmstrong.com Resent-From: "Juanma Barranquero" Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 02 Sep 2008 23:35:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 865 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 865-submit@emacsbugs.donarmstrong.com id=B865.122039794714284 (code B ref 865); Tue, 02 Sep 2008 23:35:03 +0000 Original-Received: (at 865) by emacsbugs.donarmstrong.com; 2 Sep 2008 23:25:47 +0000 Original-Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.247]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m82NPi0o014278 for <865@emacsbugs.donarmstrong.com>; Tue, 2 Sep 2008 16:25:45 -0700 Original-Received: by an-out-0708.google.com with SMTP id b20so453363ana.9 for <865@emacsbugs.donarmstrong.com>; Tue, 02 Sep 2008 16:25:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=ogoflJ6UYvRcI2IL+h5VslzdID1j17cNu5UOtDyybfA=; b=WzmWid1onIKguQuAB3zTBqGtXDCHarVfaC/D97r81/CDDozsny6S3iOQ7AvRCz64YZ 71Y2LixjkVKlbRcDoDwi3P3DjHqHNOu8FEPB4QabeqpURW6H1AGrduhdfetrq3fMWjo9 kq+qoX/RwaErPTPbNgP0Wau/izNoPu9XL/8Ac= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=Vq9soYf8x7fQ+UTuVtMDk6OmOeL1A7sGOoPgh6clW6ADaHZMninqidrVN6+rTLjCnK wCteEre4Hx/u0X/654+cNgEH84XAADTCJl0ugkGOcG4QuWx2i6oO99fFD3oHjjOHh78q boshlh/q8CECQUzN5CyZHbBxN1BogcWQ/wyb4= Original-Received: by 10.100.216.12 with SMTP id o12mr8227931ang.117.1220397943837; Tue, 02 Sep 2008 16:25:43 -0700 (PDT) Original-Received: by 10.100.194.19 with HTTP; Tue, 2 Sep 2008 16:25:43 -0700 (PDT) In-Reply-To: <48BDC9F1.8090105@gmail.com> Content-Disposition: inline X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Tue, 02 Sep 2008 19:47:34 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:20053 Archived-At: On Wed, Sep 3, 2008 at 01:19, Lennart Borgman (gmail) wrote: > I got your point, but I still think it is better to try to catch the > error there. Why? Deleting the old server-file is irrelevant, it's just cleanup. Failing to do it does not affect the Emacs server. Failing to write a new server file *is* a problem: you won't be able to communicate with emacsclient, or it will use erroneous or malicious data. The relevant operations there are `(make-network-process ... :service server-file ...)' and `(with-temp-file server-file ...)'; these are the ones that should signal an error if something fails. And they do. Juanma