commit-inetutils
[Top][All Lists]
Advanced

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

[SCM] GNU Inetutils branch, master, updated. inetutils-1_9_1-302-gb151d


From: Mats Erik Andersson
Subject: [SCM] GNU Inetutils branch, master, updated. inetutils-1_9_1-302-gb151d97
Date: Mon, 10 Jun 2013 13:24:10 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Inetutils ".

The branch, master has been updated
       via  b151d97c67a0e44e30f96786b3d1f8aa915ba573 (commit)
      from  8c5a7001976fad8e0786691f8ccf45467fbf414e (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/inetutils.git/commit/?id=b151d97c67a0e44e30f96786b3d1f8aa915ba573


commit b151d97c67a0e44e30f96786b3d1f8aa915ba573
Author: Mats Erik Andersson <address@hidden>
Date:   Sat Jun 8 23:50:22 2013 +0200

    logger: Flexible UNIX socket name.

diff --git a/ChangeLog b/ChangeLog
index 56c6266..6ad6003 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2013-06-08  Mats Erik Andersson  <address@hidden>
+
+       logger: Flexibel UNIX socket name.
+
+       * src/logger.c (open_socket): Call strchr()
+       to check if `host' contains a slash anywhere.
+       Then it names a UNIX socket.
+
 2013-05-29  Mats Erik Andersson  <address@hidden>
 
        tests: Directory loading in syslogd.
diff --git a/doc/inetutils.texi b/doc/inetutils.texi
index 13bdbee..e344e50 100644
--- a/doc/inetutils.texi
+++ b/doc/inetutils.texi
@@ -374,8 +374,8 @@ standard input is assumed.
 @opindex -h
 @opindex --host
 Send messages to the given host or socket.  The @var{host} argument
-can be either a local UNIX socket name (starting with a slash @samp{/}),
-or:
+can be either a local UNIX socket name (containing a slash @samp{/}),
+or be of the form
 
 @smallexample
 @var{host}[:@var{port}]
diff --git a/src/logger.c b/src/logger.c
index d0d16bc..e4bd367 100644
--- a/src/logger.c
+++ b/src/logger.c
@@ -145,7 +145,7 @@ open_socket (void)
 
   /* A UNIX socket name can be specified in two ways.
    * Zero length of `unixsock' is handled automatically.  */
-  if ((host != NULL && host[0] == '/') || unixsock != NULL)
+  if ((host != NULL && strchr (host, '/')) || unixsock != NULL)
     {
       size_t len;
 

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog          |    8 ++++++++
 doc/inetutils.texi |    4 ++--
 src/logger.c       |    2 +-
 3 files changed, 11 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
GNU Inetutils 



reply via email to

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