-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support XAUTHLOCALHOSTNAME environment variable
- Loading branch information
1 parent
6705fda
commit f5bc0ab
Showing
1 changed file
with
5 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,8 +36,10 @@ | |
;;; The format of the .Xauthority file is documented in the XFree | ||
;;; sources, in the file xc/lib/Xau/README. | ||
|
||
;;; Stolen from the cmucl sources, with patches by Hannu Rummukainen and | ||
;;; Scott Fahlman. | ||
;;; Stolen from the cmucl sources, with patches by | ||
;;; * Hannu Rummukainen | ||
;;; * Scott Fahlman | ||
;;; * Copyright (C) 2022 Massimo Zaniboni <[email protected]> | ||
|
||
(defun read-xauth-entry (stream) | ||
(labels ((read-short (stream &optional (eof-errorp t)) | ||
|
@@ -108,7 +110,7 @@ | |
(when (or (eql protocol :local) | ||
(and (eql protocol :internet) | ||
(equal host-address '(127 0 0 1)))) | ||
(setq host-address (get-host-name)) | ||
(setq host-address (or (getenv "XAUTHLOCALHOSTNAME") (get-host-name))) | ||
(setq protocol :local)) | ||
(loop | ||
(destructuring-bind (family address number name data) | ||
|