From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#23068: 25.1.50; unix socket address in abstract namespace Date: Sun, 20 Mar 2016 18:11:09 +0100 Message-ID: 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 1458493944 23421 80.91.229.3 (20 Mar 2016 17:12:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 20 Mar 2016 17:12:24 +0000 (UTC) Cc: 23068@debbugs.gnu.org To: Mark Oteiza Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Mar 20 18:12: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 1ahgte-0007SO-TJ for geb-bug-gnu-emacs@m.gmane.org; Sun, 20 Mar 2016 18:12:11 +0100 Original-Received: from localhost ([::1]:53758 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ahgte-0006WC-19 for geb-bug-gnu-emacs@m.gmane.org; Sun, 20 Mar 2016 13:12:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47894) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ahgta-0006Vv-F7 for bug-gnu-emacs@gnu.org; Sun, 20 Mar 2016 13:12:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ahgtW-0004A6-02 for bug-gnu-emacs@gnu.org; Sun, 20 Mar 2016 13:12:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:58646) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ahgtV-00049w-TD for bug-gnu-emacs@gnu.org; Sun, 20 Mar 2016 13:12:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ahgtV-0000Ui-Q4 for bug-gnu-emacs@gnu.org; Sun, 20 Mar 2016 13:12:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Magne Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 20 Mar 2016 17:12: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.14584938751848 (code B ref 23068); Sun, 20 Mar 2016 17:12:01 +0000 Original-Received: (at 23068) by debbugs.gnu.org; 20 Mar 2016 17:11:15 +0000 Original-Received: from localhost ([127.0.0.1]:55773 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ahgsl-0000Tk-D9 for submit@debbugs.gnu.org; Sun, 20 Mar 2016 13:11:15 -0400 Original-Received: from hermes.netfonds.no ([80.91.224.195]:58090) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ahgsj-0000TY-33 for 23068@debbugs.gnu.org; Sun, 20 Mar 2016 13:11:14 -0400 Original-Received: from cm-84.215.1.64.getinternet.no ([84.215.1.64] helo=stories) by hermes.netfonds.no with esmtpsa (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.84_2) (envelope-from ) id 1ahgsf-0003m0-Ii; Sun, 20 Mar 2016 18:11:11 +0100 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAD1BMVEXYz811VFX29PSqnJzr 5uT6UAdPAAACZUlEQVQ4jU2UgZHrMAhEkaUCxCcFeDgVIIILcIj6r+kvSm7m7EtmTs/AsuCQi7jX Se6XjjGWFmZ+qBJAEp8soRFxc14AZr6vWXyGrnhvEEqVq1kVn9NljjV+cGz8VJqfAPOOT/sATsD9 C8TJ+mrvX2B9TinIZj4rU7t/azCyd9sAIZPIcN4T1EqXAxQocyaoQaZYZLXWy0v5gucRLtfSIC8J zN41GzVBj3QEGuy+QU0gXvlC82sBPNwLfQAUzwzRe41Bs8+aoE4GcOeWhiEfPWa9M2Jy3Z1CaiyA el0OUO5pGzia07UGlXn5+w8Qa6GjBRW/vIoVShMzwB4ovRJMf3crsH0DiF5D78hBSYVZs5fMhamk rraIv6BvMEnEriMGJWAHkF5SbwIUOYnEBJ0ByAaZCkXQXzdGPXyxfWqkYIgier+eOMUC8LdDjLKt QrpqlBfjL2XksdWOAdOIdugpezvQhJXU36qQjlNDsZ5s8L1zgY2G7aNcWJijgelBBrAAyKR66L7G YOdUAY2V/aKJw5VA7UppAAbQaOzH8TlK4yK5bbljbUco9v+4a0DoBm4Te4U9zecxtPVa3TJGMF9y OjMXNgZvxzjePRVsMC+NoWcccC7ohtFIJnjVmGG/woCx7lh3K2W/a5Tf7dR139iZzHmfWeUJINQW 0ucpbhSzF/d/GNTevbF7CW0Ar5P7sVOlohgbjpQdIkFpQy7yvuPAri3cKF77IH8id9qc+RCzVlFK KZ+yA7u8/cT1E/Bq24gSuo+3ODxEdcZ3IDtok/wPb+n18Ret5CB/CWGG2/mRvzDrM7RE/wFQuaEy HrozfAAAAABJRU5ErkJggg== In-Reply-To: <20160320170212.GA19097@holos.localdomain> (Mark Oteiza's message of "Sun, 20 Mar 2016 13:02:12 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (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:115156 Archived-At: 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++; sa->sa_family = family; } #endif return; } -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no