From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ulrich Mueller Newsgroups: gmane.emacs.devel Subject: Re: emacs client/server mode hardcodes /tmp path Date: Tue, 28 Oct 2008 14:38:14 +0100 Message-ID: <18695.5574.107271.711561@a1i15.kph.uni-mainz.de> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1225201157 3926 80.91.229.12 (28 Oct 2008 13:39:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 28 Oct 2008 13:39:17 +0000 (UTC) Cc: emacs@gentoo.org, Diego Petteno , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 28 14:40:18 2008 connect(): Connection refused Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KuonR-0004l1-CL for ged-emacs-devel@m.gmane.org; Tue, 28 Oct 2008 14:39:45 +0100 Original-Received: from localhost ([127.0.0.1]:56504 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KuomL-0001jc-1Y for ged-emacs-devel@m.gmane.org; Tue, 28 Oct 2008 09:38:37 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KuomH-0001jL-4e for emacs-devel@gnu.org; Tue, 28 Oct 2008 09:38:33 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KuomE-0001iV-4m for emacs-devel@gnu.org; Tue, 28 Oct 2008 09:38:32 -0400 Original-Received: from [199.232.76.173] (port=57140 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KuomE-0001iS-0D for emacs-devel@gnu.org; Tue, 28 Oct 2008 09:38:30 -0400 Original-Received: from a1iwww1.kph.uni-mainz.de ([134.93.134.1]:48738) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KuomD-0008Bx-NN for emacs-devel@gnu.org; Tue, 28 Oct 2008 09:38:29 -0400 Original-Received: from a1i15.kph.uni-mainz.de (a1i15.kph.uni-mainz.de [134.93.134.92]) by a1iwww1.kph.uni-mainz.de (8.14.0/8.13.4) with ESMTP id m9SDcFnT008131; Tue, 28 Oct 2008 14:38:15 +0100 Original-Received: from a1i15.kph.uni-mainz.de (localhost [127.0.0.1]) by a1i15.kph.uni-mainz.de (8.14.2/8.13.4) with ESMTP id m9SDcEPK009737; Tue, 28 Oct 2008 14:38:14 +0100 Original-Received: (from ulm@localhost) by a1i15.kph.uni-mainz.de (8.14.2/8.14.2/Submit) id m9SDcER5009731; Tue, 28 Oct 2008 14:38:14 +0100 In-Reply-To: X-Mailer: VM 8.0.9 under Emacs 22.3.1 (i686-pc-linux-gnu) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) 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 Xref: news.gmane.org gmane.emacs.devel:105071 Archived-At: >>>>> On Thu, 06 Mar 2008, Stefan Monnier wrote: >> I'm working to make use of pam_mktemp in my systems by default, >> pam_mktemp is a PAM module that creates a private temporary >> directory per-user inside /tmp and sets TMP and TMPDIR accondingly. > Indeed. I'm not sure what should be done here. The reason for the > hard-coded /tmp is that the emacsclient process and the emacs server > process may be executed from different contexts (different login > sessions for example), so it's not clear that they would use the > same $TMPDIR setting. > What do others think? Should we take the risk and obey $TMPDIR? Hi, coming back to this old subject, has any decision been taken on this? GNU Coding Standards [1] explicitely say: # If you make temporary files, check the TMPDIR environment variable; # if that variable is defined, use the specified directory instead of # /tmp. Ulrich [1] http://www.gnu.org/prep/standards/standards.html#Semantics