From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.bugs Subject: bug#23068: 25.1.50; unix socket address in abstract namespace Date: Sun, 20 Mar 2016 18:39:02 +0100 Message-ID: <87fuvluk09.fsf@linux-m68k.org> References: <87h9g1g7lg.fsf@udel.edu> <83h9g16rfy.fsf@gnu.org> <20160320170212.GA19097@holos.localdomain> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1458495623 17974 80.91.229.3 (20 Mar 2016 17:40:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 20 Mar 2016 17:40:23 +0000 (UTC) Cc: Mark Oteiza , 23068@debbugs.gnu.org To: Lars Magne Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Mar 20 18:40:12 2016 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 1ahhKl-0004Xa-0o for geb-bug-gnu-emacs@m.gmane.org; Sun, 20 Mar 2016 18:40:11 +0100 Original-Received: from localhost ([::1]:53839 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ahhKk-0006Db-83 for geb-bug-gnu-emacs@m.gmane.org; Sun, 20 Mar 2016 13:40:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54992) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ahhKf-0006B1-De for bug-gnu-emacs@gnu.org; Sun, 20 Mar 2016 13:40:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ahhKb-0002QE-Pg for bug-gnu-emacs@gnu.org; Sun, 20 Mar 2016 13:40:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:58660) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ahhKb-0002Py-Lp for bug-gnu-emacs@gnu.org; Sun, 20 Mar 2016 13:40:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ahhKb-000193-Gf for bug-gnu-emacs@gnu.org; Sun, 20 Mar 2016 13:40:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andreas Schwab Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 20 Mar 2016 17:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23068 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23068-submit@debbugs.gnu.org id=B23068.14584955554343 (code B ref 23068); Sun, 20 Mar 2016 17:40:01 +0000 Original-Received: (at 23068) by debbugs.gnu.org; 20 Mar 2016 17:39:15 +0000 Original-Received: from localhost ([127.0.0.1]:55787 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ahhJq-00017y-7L for submit@debbugs.gnu.org; Sun, 20 Mar 2016 13:39:15 -0400 Original-Received: from mail-out.m-online.net ([212.18.0.9]:53023) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ahhJk-00017n-UQ for 23068@debbugs.gnu.org; Sun, 20 Mar 2016 13:39:12 -0400 Original-Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3qSmRH67Vjz3hjVj; Sun, 20 Mar 2016 18:39:07 +0100 (CET) Original-Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3qSmRH06JyzvhRS; Sun, 20 Mar 2016 18:39:06 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Original-Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id M9PIfSPc5iIC; Sun, 20 Mar 2016 18:39:02 +0100 (CET) X-Auth-Info: iJdTmShJD0evXFtbrImQbq4eZX/bh+puJrfI+a9aOYPGtBqiPeuiy8LnKaPRVfcB Original-Received: from igel.home (ppp-88-217-10-131.dynamic.mnet-online.de [88.217.10.131]) by mail.mnet-online.de (Postfix) with ESMTPA; Sun, 20 Mar 2016 18:39:02 +0100 (CET) Original-Received: by igel.home (Postfix, from userid 1000) id 703602C480C; Sun, 20 Mar 2016 18:39:02 +0100 (CET) X-Yow: The appreciation of the average visual graphisticator alone is worth the whole suaveness and decadence which abounds!! In-Reply-To: (Lars Magne Ingebrigtsen's message of "Sun, 20 Mar 2016 18:11:09 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.92 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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:115159 Archived-At: Lars Magne Ingebrigtsen writes: > Mark Oteiza writes: > >> and I'm able to connect to it otherwise. The above elisp does: >> >> socket(PF_LOCAL, SOCK_STREAM|SOCK_CLOEXEC, 0) = 8 >> connect(8, {sa_family=AF_LOCAL, sun_path=@""}, 110) = -1 >> ECONNREFUSED (Connection refused) >> close(8) > > Yeah, this code in conv_lisp_to_sockaddr doesn't look very correct: > > else if (STRINGP (address)) > { > #ifdef HAVE_LOCAL_SOCKETS > if (family == AF_LOCAL) > { > struct sockaddr_un *sockun = (struct sockaddr_un *) sa; > cp = SDATA (address); > for (i = 0; i < sizeof (sockun->sun_path) && *cp; i++) > sockun->sun_path[i] = *cp++; This also needs to encode the string in one way. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."