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: expressions Date: Mon, 06 Jan 2003 12:13:22 -0500 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1041998755 10457 80.91.224.249 (8 Jan 2003 04:05:55 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 8 Jan 2003 04:05:55 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18W7TV-0002iW-00 for ; Wed, 08 Jan 2003 05:05:53 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18W7YN-0007YD-00 for ; Wed, 08 Jan 2003 05:10:55 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18Vxy7-0003Ls-04 for emacs-devel@quimby.gnus.org; Tue, 07 Jan 2003 12:56:51 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18Vaol-0008QQ-00 for emacs-devel@gnu.org; Mon, 06 Jan 2003 12:13:39 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18Vaof-0008EZ-00 for emacs-devel@gnu.org; Mon, 06 Jan 2003 12:13:34 -0500 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18VaoU-0007za-00 for emacs-devel@gnu.org; Mon, 06 Jan 2003 12:13:22 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.10) id 18VaoU-0002Or-00; Mon, 06 Jan 2003 12:13:22 -0500 Original-To: halley@play-bow.org In-reply-to: (message from Bob Halley on 05 Jan 2003 11:55:49 -0800) Original-cc: tytso@mit.edu X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:10555 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:10555 The standard way of dealing with this portably is to create a directory for the socket filename to live in, and control access via permissions on the directory. We could change both server.el and emacsclient to do this, I guess. It would be an incompatible change, and some users who try to use an older emacsclient with a newer Emacs would lose. We could change emacsclient to try the new method first and then try the old method. Then it would work with old Emacs versions. Is there a way to make server.el support both methods? Currently, server.el places the socket in /tmp/esrv- This way, different user names with the same UID can interoperate. I've always wondered why the socket wasn't placed in $HOME. That way, they could not interoperate. The technique of making a directory to regulate access can be used under /tmp, I guess. Would these directories in /tmp get cleared out when /tmp is cleared? If not, that would be a problem.