GNU bug report logs - #18658
24.3; deformed server-socket-dir

Previous Next

Package: emacs;

Reported by: Devon Sean McCullough <Emacs-Hacker2014 <at> jovi.net>

Date: Tue, 7 Oct 2014 19:59:01 UTC

Severity: minor

Tags: fixed, patch

Merged with 24513

Found in versions 24.3, 25.1

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Devon Sean McCullough <Emacs-Hacker2014 <at> jovi.net>
To: 18658 <at> debbugs.gnu.org
Subject: bug#18658: 24.3; deformed server-socket-dir
Date: Tue, 7 Oct 2014 15:57:58 -0400
Double slashes in server-socket-dir is a bug waiting to happen.

		Peace
			--Devon

P.S. Fix follows:

--- lisp/server.el.~1~	2014-10-07 13:27:34.000000000 -0400
+++ lisp/server.el	2014-10-07 13:34:03.000000000 -0400
@@ -266,7 +266,10 @@
 ;; does not read the init file.
 (defvar server-socket-dir
   (and (featurep 'make-network-process '(:family local))
-       (format "%s/emacs%d" (or (getenv "TMPDIR") "/tmp") (user-uid)))
+       (expand-file-name (format "emacs%d" 
+				 (user-uid))
+			 (or (getenv "TMPDIR")
+			     "/tmp")))
   "The directory in which to place the server socket.
 If local sockets are not supported, this is nil.")






This bug report was last modified 4 years and 281 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.