From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mike Alexander Newsgroups: gmane.emacs.bugs Subject: bug#20999: 24.4; Inconsistent UID vs USER resolution between emacsclient and emacs daemon Date: Tue, 07 Jul 2015 01:57:38 +0000 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=e89a8f64277a5fe1f1051a3f59a8 X-Trace: ger.gmane.org 1436245224 31594 80.91.229.3 (7 Jul 2015 05:00:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 7 Jul 2015 05:00:24 +0000 (UTC) To: 20999@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jul 07 07:00:15 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZCKzP-0007xw-EC for geb-bug-gnu-emacs@m.gmane.org; Tue, 07 Jul 2015 07:00:15 +0200 Original-Received: from localhost ([::1]:54014 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZCKzO-0001um-UG for geb-bug-gnu-emacs@m.gmane.org; Tue, 07 Jul 2015 01:00:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54770) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZCKzH-0001rP-AC for bug-gnu-emacs@gnu.org; Tue, 07 Jul 2015 01:00:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZCKzF-0007Ej-8M for bug-gnu-emacs@gnu.org; Tue, 07 Jul 2015 01:00:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41227) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZCKzF-0007Cp-5C for bug-gnu-emacs@gnu.org; Tue, 07 Jul 2015 01:00:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZCKzE-0001oi-Bc for bug-gnu-emacs@gnu.org; Tue, 07 Jul 2015 01:00:04 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mike Alexander Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 07 Jul 2015 05:00:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 20999 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.14362451516879 (code B ref -1); Tue, 07 Jul 2015 05:00:03 +0000 Original-Received: (at submit) by debbugs.gnu.org; 7 Jul 2015 04:59:11 +0000 Original-Received: from localhost ([127.0.0.1]:42670 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZCKyM-0001ms-5R for submit@debbugs.gnu.org; Tue, 07 Jul 2015 00:59:11 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:44266) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZCI94-00069A-1R for submit@debbugs.gnu.org; Mon, 06 Jul 2015 21:58:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZCI8w-0004SQ-PY for submit@debbugs.gnu.org; Mon, 06 Jul 2015 21:57:56 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:59387) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZCI8w-0004SM-MY for submit@debbugs.gnu.org; Mon, 06 Jul 2015 21:57:54 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57756) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZCI8u-0002iO-1W for bug-gnu-emacs@gnu.org; Mon, 06 Jul 2015 21:57:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZCI8s-0004Qq-0l for bug-gnu-emacs@gnu.org; Mon, 06 Jul 2015 21:57:51 -0400 Original-Received: from mail-ig0-x231.google.com ([2607:f8b0:4001:c05::231]:33201) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZCI8r-0004QS-PR for bug-gnu-emacs@gnu.org; Mon, 06 Jul 2015 21:57:49 -0400 Original-Received: by igh16 with SMTP id 16so40603909igh.0 for ; Mon, 06 Jul 2015 18:57:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=WBFf35IGGy/eVrcARTvl6rAG8s9gUaqusSk+107GRi4=; b=ZLllnQbrUEDvo9t0tZcOFtXwMhricCwjd3wrVVMMt7ny3TPQF56XM4YKo8u4H7BLhd q1pXH1HaYPRluRTbq4LDxGDorfZIMP6NIhTdPtwTMhNfHocqz/iKwPJOHXEsKOW3MV2n 868hO1yAApzIYCHuN7I3FdnhF/5k43eBKJZcEOgtICaoGFYBrfaG1qJ97ocncb7BUkEa H+szxd5j7/8YBw5cfxpxLM5EDAuJ08IV5+nHxZVqHJSgwVnkiboa3VkW9vqAMB7YDl6p jPNqjbj2KCG/aSfaGZZjuy4NfPAUshHqu23y82nWgCoCkd5XWu3myY82cBoh7axYGmAm 29LA== X-Received: by 10.50.30.105 with SMTP id r9mr74490021igh.11.1436234268268; Mon, 06 Jul 2015 18:57:48 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Mailman-Approved-At: Tue, 07 Jul 2015 00:59:08 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:104794 Archived-At: --e89a8f64277a5fe1f1051a3f59a8 Content-Type: text/plain; charset=UTF-8 Many standard programs will automatically use the UID (the number) of a user instead of the USER (username) when the USER string is longer than 8 characters. In my case the username assigned to me is 11 characters long and cannot be changed. Starting the emacs daemon with "emacs --daemon=$EMACS_DAEMON_NAME", where the $EMACS_DAEMON_NAME matches the standard letter, number, underscore requrements, ends up using my UID in the socket creation since my username is longer than 8 characters ("/tmp/emacs$(id -u)/$EMACS_DAEMON_NAME"). However, running "emacsclient -c -s $EMACS_DAEMON_NAME" fails with a refused connection because it attempts to connect using my username instead of the UID and fails to find the socket ("/tmp/emacs$USER/$EMACS_DAEMON_NAME"). These behaviors should be consistent between the two since they're expected to be used in tandem. In GNU Emacs 24.4.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.20.1) of 2014-12-18 on GOL-AP21-DV Windowing system distributor `The Cygwin/X Project', version 11.0.11602000 System Description: Ubuntu 10.04.4 LTS Configured using: `configure --prefix=/home/mtalexander/local/ --with-xpm=no --with-gif=no --with-tiff=no' Important settings: locale-coding-system: nil Major mode: Lisp Interaction Minor modes in effect: global-visible-mark-mode: t visible-mark-mode: t helm-mode: t shell-dirtrack-mode: t helm-autoresize-mode: t projectile-global-mode: t projectile-mode: t global-company-mode: t company-mode: t global-semantic-mru-bookmark-mode: t global-semanticdb-minor-mode: t global-semantic-idle-completions-mode: t global-semantic-idle-scheduler-mode: t global-semantic-idle-local-symbol-highlight-mode: t global-semantic-idle-summary-mode: t winner-mode: t show-paren-mode: t global-semantic-highlight-func-mode: t global-semantic-stickyfunc-mode: t global-semantic-show-parser-state-mode: t semantic-mode: t global-linum-mode: t linum-mode: t tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: M-x r e p r t o r t - e m a c s - b u g Recent messages: Loading /home/mtalexander/.emacs.d/smooth-scrolling.el (source)...done Loading /home/mtalexander/.emacs.d/init-etags.el (source)...done Loading /home/mtalexander/.emacs.d/grep-buffers.el (source)...done Loading /home/mtalexander/.emacs.d/multi-term.el (source)...done Loading /home/mtalexander/.emacs.d/linum.el (source)...done ad-handle-definition: `tramp-read-passwd' got redefined Helm completion enabled Loading /home/mtalexander/.emacs.d/elpa/helm-20150319.1356/helm-autoloads.el (source)...done [sml] sml/theme set to respectful For information about GNU Emacs and the GNU system, type C-h C-a. Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mail-utils company-files company-oddmuse company-keywords company-etags etags company-gtags company-dabbrev-code company-dabbrev company-capf company-cmake company-xcode company-clang company-semantic company-eclim company-template company-css company-nxml company-bbdb company-c-headers visible-mark lk-file-search xcscope smart-mode-line-respectful-theme smart-mode-line rich-minority helm-swoop helm-projectile helm-config async-bytecomp async helm-aliases helm-mode helm-files rx image-dired tramp tramp-compat tramp-loaddefs trampver shell dired-x dired-aux ffap helm-buffers helm-elscreen helm-tags helm-bookmark helm-adaptive helm-info bookmark pp helm-locate helm-help helm-org org org-macro org-footnote org-pcomplete pcomplete org-list org-faces org-entities noutline outline org-version ob-emacs-lisp ob ob-tangle ob-ref ob-lob ob-table ob-exp org-src ob-keys ob-comint ob-core ob-eval org-compat org-macs org-loaddefs format-spec find-func cal-menu calendar cal-loaddefs helm-match-plugin helm-grep helm-regexp helm-plugin grep helm-external helm-net browse-url xml url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util url-parse auth-source gnus-util mm-util mail-prsvr password-cache url-vars mailcap helm-utils compile comint ansi-color helm helm-source projectile ibuf-ext ibuffer dash thingatpt company easy-mmode multi-term cl-macs cl term disp-table ehelp grep-buffers mule-util elscreen dired init-etags smooth-scrolling advice help-fns+ info wid-edit help-fns help-mode+ help-mode edmacro kmacro cl-loaddefs cl-lib package epg-config semantic/mru-bookmark semantic/db-mode semantic/db gv eieio-base semantic/idle semantic/format ezimage semantic/ctxt semantic/decorate/mode semantic/tag-ls semantic/find semantic/decorate pulse winner ring paren semantic/util-modes easymenu semantic/util semantic semantic/tag semantic/lex semantic/fw eieio byte-opt bytecomp byte-compile cconv eieio-core mode-local cedet linum cus-start cus-load time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind gfilenotify dynamic-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) Memory information: ((conses 16 325520 172357) (symbols 48 41544 5) (miscs 40 563 1081) (strings 32 105861 99545) (string-bytes 1 3546932) (vectors 16 32991) (vector-slots 8 629990 41331) (floats 8 197 223) (intervals 56 504 3080) (buffers 960 13) (heap 1024 35991 15990)) --e89a8f64277a5fe1f1051a3f59a8 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Many standard programs will automatically use the UID= (the number) of a
user instead of the USER (username) when the U= SER string is longer than
8 characters.=C2=A0 In my case the user= name assigned to me is 11 characters
long and cannot be changed.<= /div>

Starting the emacs daemon with "emacs --daemo= n=3D$EMACS_DAEMON_NAME", where
the $EMACS_DAEMON_NAME matche= s the standard letter, number, underscore requrements, ends up using
<= div>my UID in the socket creation since my username is longer than 8
<= div>characters ("/tmp/emacs$(id -u)/$EMACS_DAEMON_NAME").=C2=A0 H= owever, running
"emacsclient -c -s $EMACS_DAEMON_NAME" = fails with a refused connection
because it attempts to connect us= ing my username instead of the UID and
fails to find the socket (= "/tmp/emacs$USER/$EMACS_DAEMON_NAME").=C2=A0 These
beha= viors should be consistent between the two since they're expected to
be used in tandem.




In GNU Emacs 24.4.1 (x86_64-unknown-linux-gnu, GTK+ V= ersion 2.20.1)
=C2=A0of 2014-12-18 on GOL-AP21-DV
Windo= wing system distributor `The Cygwin/X Project', version 11.0.11602000
System Description: Ubuntu 10.04.4 LTS

Configured us= ing:
=C2=A0`configure --prefix=3D/home/mtalexander/local/ --with-= xpm=3Dno
=C2=A0--with-gif=3Dno --with-tiff=3Dno'
Important settings:
=C2=A0 locale-coding-system: nil=

Major mode: Lisp Interaction

=
Minor modes in effect:
=C2=A0 global-visible-mark-mode: t
=C2=A0 visible-mark-mode: t
=C2=A0 helm-mode: t
=C2=A0 shell-dirtrack-mode: t
=C2=A0 helm-autoresize-mode: t
=C2=A0 projectile-global-mode: t
=C2=A0 projectile-mode: t=
=C2=A0 global-company-mode: t
=C2=A0 company-mode: t
=C2=A0 global-semantic-mru-bookmark-mode: t
=C2=A0 globa= l-semanticdb-minor-mode: t
=C2=A0 global-semantic-idle-completion= s-mode: t
=C2=A0 global-semantic-idle-scheduler-mode: t
=C2=A0 global-semantic-idle-local-symbol-highlight-mode: t
=C2= =A0 global-semantic-idle-summary-mode: t
=C2=A0 winner-mode: t
=C2=A0 show-paren-mode: t
=C2=A0 global-semantic-highligh= t-func-mode: t
=C2=A0 global-semantic-stickyfunc-mode: t
=C2=A0 global-semantic-show-parser-state-mode: t
=C2=A0 semanti= c-mode: t
=C2=A0 global-linum-mode: t
=C2=A0 linum-mode= : t
=C2=A0 tooltip-mode: t
=C2=A0 electric-indent-mode:= t
=C2=A0 mouse-wheel-mode: t
=C2=A0 menu-bar-mode: t
=C2=A0 file-name-shadow-mode: t
=C2=A0 global-font-lock-= mode: t
=C2=A0 font-lock-mode: t
=C2=A0 blink-cursor-mo= de: t
=C2=A0 auto-composition-mode: t
=C2=A0 auto-encry= ption-mode: t
=C2=A0 auto-compression-mode: t
=C2=A0 co= lumn-number-mode: t
=C2=A0 line-number-mode: t
=C2=A0 t= ransient-mark-mode: t

Recent input:
M-x = r e p r t <backspace> <backspace> o r t - e m a=C2=A0
c s - b u g <return>

Recent messages:
=
Loading /home/mtalexander/.emacs.d/smooth-scrolling.el (source)...done=
Loading /home/mtalexander/.emacs.d/init-etags.el (source)...done=
Loading /home/mtalexander/.emacs.d/grep-buffers.el (source)...do= ne
Loading /home/mtalexander/.emacs.d/multi-term.el (source)...do= ne
Loading /home/mtalexander/.emacs.d/linum.el (source)...done
ad-handle-definition: `tramp-read-passwd' got redefined
Helm completion enabled
Loading /home/mtalexander/.emacs.d/elp= a/helm-20150319.1356/helm-autoloads.el (source)...done
[sml] sml/= theme set to respectful
For information about GNU Emacs and the G= NU system, type C-h C-a.

Load-path shadows:
<= div>None found.

Features:
(shadow sort m= ail-extr emacsbug message rfc822 mml mml-sec mm-decode
mm-bodies = mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader
send= mail rfc2047 rfc2045 ietf-drums mail-utils company-files
company-= oddmuse company-keywords company-etags etags company-gtags
compan= y-dabbrev-code company-dabbrev company-capf company-cmake
company= -xcode company-clang company-semantic company-eclim
company-templ= ate company-css company-nxml company-bbdb company-c-headers
visib= le-mark lk-file-search xcscope smart-mode-line-respectful-theme
s= mart-mode-line rich-minority helm-swoop helm-projectile helm-config
async-bytecomp async helm-aliases helm-mode helm-files rx image-dired
tramp tramp-compat tramp-loaddefs trampver shell dired-x dired-aux = ffap
helm-buffers helm-elscreen helm-tags helm-bookmark helm-adap= tive
helm-info bookmark pp helm-locate helm-help helm-org org org= -macro
org-footnote org-pcomplete pcomplete org-list org-faces or= g-entities
noutline outline org-version ob-emacs-lisp ob ob-tangl= e ob-ref ob-lob
ob-table ob-exp org-src ob-keys ob-comint ob-core= ob-eval org-compat
org-macs org-loaddefs format-spec find-func c= al-menu calendar
cal-loaddefs helm-match-plugin helm-grep helm-re= gexp helm-plugin grep
helm-external helm-net browse-url xml url u= rl-proxy url-privacy
url-expand url-methods url-history url-cooki= e url-domsuf url-util
url-parse auth-source gnus-util mm-util mai= l-prsvr password-cache
url-vars mailcap helm-utils compile comint= ansi-color helm helm-source
projectile ibuf-ext ibuffer dash thi= ngatpt company easy-mmode multi-term
cl-macs cl term disp-table e= help grep-buffers mule-util elscreen dired
init-etags smooth-scro= lling advice help-fns+ info wid-edit help-fns
help-mode+ help-mod= e edmacro kmacro cl-loaddefs cl-lib package
epg-config semantic/m= ru-bookmark semantic/db-mode semantic/db gv
eieio-base semantic/i= dle semantic/format ezimage semantic/ctxt
semantic/decorate/mode = semantic/tag-ls semantic/find semantic/decorate
pulse winner ring= paren semantic/util-modes easymenu semantic/util
semantic semant= ic/tag semantic/lex semantic/fw eieio byte-opt bytecomp
byte-comp= ile cconv eieio-core mode-local cedet linum cus-start cus-load
ti= me-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type
=
mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe
<= div>tabulated-list newcomment lisp-mode prog-mode register page menu-bar
rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax=
facemenu font-core frame cham georgian utf-8-lang misc-lang viet= namese
tibetan thai tai-viet lao korean japanese hebrew greek rom= anian slovak
czech european ethiopic indian cyrillic chinese case= -table epa-hook
jka-cmpr-hook help simple abbrev minibuffer nadvi= ce loaddefs button
faces cus-face macroexp files text-properties = overlay sha1 md5 base64
format env code-pages mule custom widget = hashtable-print-readable
backquote make-network-process dbusbind = gfilenotify dynamic-setting
font-render-setting move-toolbar gtk = x-toolkit x multi-tty emacs)

Memory information:
((conses 16 325520 172357)
=C2=A0(symbols 48 41544 5)
=C2=A0(miscs 40 563 1081)
=C2=A0(strings 32 105861 99545)=
=C2=A0(string-bytes 1 3546932)
=C2=A0(vectors 16 32991= )
=C2=A0(vector-slots 8 629990 41331)
=C2=A0(floats 8 1= 97 223)
=C2=A0(intervals 56 504 3080)
=C2=A0(buffers 96= 0 13)
=C2=A0(heap 1024 35991 15990))
--e89a8f64277a5fe1f1051a3f59a8--