gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r32452 - msh/src


From: gnunet
Subject: [GNUnet-SVN] r32452 - msh/src
Date: Fri, 21 Feb 2014 16:13:46 +0100

Author: harsha
Date: 2014-02-21 16:13:46 +0100 (Fri, 21 Feb 2014)
New Revision: 32452

Modified:
   msh/src/mshd.c
Log:
Use absolute path name for the abstract socket.

This is required as libgnunetutil converts socket filename to absolute path
before connecting to it. 


Modified: msh/src/mshd.c
===================================================================
--- msh/src/mshd.c      2014-02-21 15:08:58 UTC (rev 32451)
+++ msh/src/mshd.c      2014-02-21 15:13:46 UTC (rev 32452)
@@ -866,7 +866,7 @@
   GNUNET_break (GNUNET_OK == reduce_ntree ());
   addressmap_print (addrmap);
   pid = (intmax_t) getpid ();
-  GNUNET_assert (0 < asprintf (&unixpath, "%ju.sock", pid));
+  GNUNET_assert (0 < asprintf (&unixpath, "/%ju.sock", pid));
   hostsfile = GNUNET_DISK_mktemp ("MSHD_HOSTS");
   if (GNUNET_OK != addressmap_write_hosts (addrmap, hostsfile))
   {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]