From MAILER-DAEMON Thu Mar 13 17:31:13 2014
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1WODDd-00067M-57
	for mharc-commit-inetutils@gnu.org; Thu, 13 Mar 2014 17:31:13 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:58707)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gnu@gisladisker.se>) id 1WODDa-0005yn-GR
	for commit-inetutils@gnu.org; Thu, 13 Mar 2014 17:31:11 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gnu@gisladisker.se>) id 1WODDZ-0007Ut-2H
	for commit-inetutils@gnu.org; Thu, 13 Mar 2014 17:31:10 -0400
Received: from vcs.savannah.gnu.org ([140.186.70.72]:49678)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gnu@gisladisker.se>) id 1WODDY-0007Uo-VE
	for commit-inetutils@gnu.org; Thu, 13 Mar 2014 17:31:08 -0400
Received: from meand by vcs.savannah.gnu.org with local (Exim 4.72)
	(envelope-from <gnu@gisladisker.se>) id 1WODDY-0002yF-El
	for commit-inetutils@gnu.org; Thu, 13 Mar 2014 21:31:08 +0000
Date: Thu, 13 Mar 2014 21:31:08 +0000
Message-Id: <E1WODDY-0002yF-El@vcs.savannah.gnu.org>
To: commit-inetutils@gnu.org
Subject: [SCM] GNU Inetutils  branch, master,
	updated. inetutils-1_9_2-10-g9c23298
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: 5f8a021b32df3d31cd98f6c85ad7c8f2b8308506
X-Git-Newrev: 9c23298d9feff6333c8ec515bd607b023a360ff6
From: Mats Erik Andersson <gnu@gisladisker.se>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 140.186.70.72
X-BeenThere: commit-inetutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: CVS commit notices for the GNU Internet utilities
	<commit-inetutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/commit-inetutils>,
	<mailto:commit-inetutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/commit-inetutils>
List-Post: <mailto:commit-inetutils@gnu.org>
List-Help: <mailto:commit-inetutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/commit-inetutils>,
	<mailto:commit-inetutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 13 Mar 2014 21:31:12 -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  9c23298d9feff6333c8ec515bd607b023a360ff6 (commit)
      from  5f8a021b32df3d31cd98f6c85ad7c8f2b8308506 (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=9c23298d9feff6333c8ec515bd607b023a360ff6


commit 9c23298d9feff6333c8ec515bd607b023a360ff6
Author: Mats Erik Andersson <gnu@gisladisker.se>
Date:   Tue Mar 11 13:12:06 2014 +0100

    hostname: Sanity checks in corner cases.
    
    Improve response when a resolver is missing.

diff --git a/ChangeLog b/ChangeLog
index c6045f1..afebf42 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2014-03-10  Mats Erik Andersson  <gnu@gisladisker.se>
+
+	hostname: Sanity checks in corner cases.
+
+	* src/hostname.c (get_name): Use reply from get_fqdn()
+	only if it gave a host name, not the artificial "(none)".
+	(set_name): Reject an empty host name.
+	(parse_file): Initialize NAME.  Improve error message
+	when getline() claims empty input.  Break out of loop
+	only if sscanf() produced a printable string.
+
 2014-02-22  Mats Erik Andersson  <gnu@gisladisker.se>
 
 	ifconfig: Allow flags richer than 16 bits.
diff --git a/src/hostname.c b/src/hostname.c
index 2a99154..95a2698 100644
--- a/src/hostname.c
+++ b/src/hostname.c
@@ -175,6 +175,7 @@ get_name (const hostname_arguments *const args)
 
   if (!sname)
     error (EXIT_FAILURE, errno, "cannot determine name");
+
   if (args->hostname_alias == 1)
     name = get_aliases (sname);
   else if (args->hostname_fqdn == 1)
@@ -182,11 +183,20 @@ get_name (const hostname_arguments *const args)
       name = get_fqdn (sname);
 
       if (args->hostname_dns_domain == 1 || args->hostname_short == 1)
-        {
-          free (sname);
-          sname = name;
-          name = NULL;
-        }
+	{
+	  /* Eliminate empty replies, as well as `(none)'.  */
+	  if (name && *name && *name != '(')
+	    {
+	      free (sname);
+	      sname = name;
+	      name = NULL;
+	    }
+	  else if (name && *name == '(')
+	    {
+	      free (name);
+	      name = NULL;
+	    }
+	}
 
       if (args->hostname_dns_domain == 1)
         name = get_dns_domain_name (sname);
@@ -222,6 +232,9 @@ set_name (const hostname_arguments *const args)
     hostname_new = args->hostname_new;
 
   size = strlen (hostname_new);
+  if (!size)
+    error (EXIT_FAILURE, 0, "Empty hostname");
+
   status = (*set_name_action) (hostname_new, size);
   if (status == -1)
     error (EXIT_FAILURE, errno, "sethostname");
@@ -370,7 +383,7 @@ static char *
 parse_file (const char *const file_name)
 {
   char *buffer = NULL;
-  char *name;
+  char *name = NULL;
   FILE *file;
   ssize_t nread;
   size_t size = 0;
@@ -379,17 +392,19 @@ parse_file (const char *const file_name)
   if (file == NULL)
     error (EXIT_FAILURE, errno, "fopen");
 
+  errno = 0;			/* Portability issue!  */
+
   do
     {
       nread = getline (&buffer, &size, file);
       if (nread == -1)
-	error (EXIT_FAILURE, errno, "getline");
+	error (EXIT_FAILURE, errno, "getline%s", errno ? "" : ": No text");
 
       if (buffer[0] != '#')
         {
-          name = xmalloc (sizeof (char) * nread);
-          sscanf (buffer, "%s", name);
-          break;
+	  name = (char *) xmalloc (sizeof (char) * nread);
+	  if (sscanf (buffer, "%s", name)  == 1)
+	    break;
         }
     }
   while (feof (file) == 0);

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

Summary of changes:
 ChangeLog      |   11 +++++++++++
 src/hostname.c |   35 +++++++++++++++++++++++++----------
 2 files changed, 36 insertions(+), 10 deletions(-)


hooks/post-receive
-- 
GNU Inetutils 


From MAILER-DAEMON Thu Mar 13 17:39:12 2014
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1WODLL-0001cj-WC
	for mharc-commit-inetutils@gnu.org; Thu, 13 Mar 2014 17:39:12 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:60281)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gnu@gisladisker.se>) id 1WODLI-0001c6-TG
	for commit-inetutils@gnu.org; Thu, 13 Mar 2014 17:39:10 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gnu@gisladisker.se>) id 1WODLH-0001Sl-Pw
	for commit-inetutils@gnu.org; Thu, 13 Mar 2014 17:39:08 -0400
Received: from vcs.savannah.gnu.org ([140.186.70.72]:49764)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gnu@gisladisker.se>) id 1WODLH-0001Sh-MM
	for commit-inetutils@gnu.org; Thu, 13 Mar 2014 17:39:07 -0400
Received: from meand by vcs.savannah.gnu.org with local (Exim 4.72)
	(envelope-from <gnu@gisladisker.se>) id 1WODLG-0003U3-UJ
	for commit-inetutils@gnu.org; Thu, 13 Mar 2014 21:39:07 +0000
Date: Thu, 13 Mar 2014 21:39:06 +0000
Message-Id: <E1WODLG-0003U3-UJ@vcs.savannah.gnu.org>
To: commit-inetutils@gnu.org
Subject: [SCM] GNU Inetutils  branch, master,
	updated. inetutils-1_9_2-11-gc889602
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: 9c23298d9feff6333c8ec515bd607b023a360ff6
X-Git-Newrev: c889602c71be904522a112c87796a766613d1a44
From: Mats Erik Andersson <gnu@gisladisker.se>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 140.186.70.72
X-BeenThere: commit-inetutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: CVS commit notices for the GNU Internet utilities
	<commit-inetutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/commit-inetutils>,
	<mailto:commit-inetutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/commit-inetutils>
List-Post: <mailto:commit-inetutils@gnu.org>
List-Help: <mailto:commit-inetutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/commit-inetutils>,
	<mailto:commit-inetutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 13 Mar 2014 21:39: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  c889602c71be904522a112c87796a766613d1a44 (commit)
      from  9c23298d9feff6333c8ec515bd607b023a360ff6 (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=c889602c71be904522a112c87796a766613d1a44


commit c889602c71be904522a112c87796a766613d1a44
Author: Mats Erik Andersson <gnu@gisladisker.se>
Date:   Thu Mar 13 12:35:49 2014 +0100

    logger: Source address resolution.

diff --git a/ChangeLog b/ChangeLog
index afebf42..635384c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2014-03-13  Mats Erik Andersson  <gnu@gisladisker.se>
+
+	logger: Source address resolution.
+
+	* src/logger.c (open_socket) [HAVE_DECL_GETADDRINFO]
+	<source is set>: Delete resolver hint for numeric address.
+
 2014-03-10  Mats Erik Andersson  <gnu@gisladisker.se>
 
 	hostname: Sanity checks in corner cases.
diff --git a/src/logger.c b/src/logger.c
index 23816db..57e23b0 100644
--- a/src/logger.c
+++ b/src/logger.c
@@ -230,15 +230,14 @@ open_socket (void)
 
 	  if (source)
 	    {
-	      /* Make the assumption that the source address
-	       * encodes a desired domain family and that it
-	       * be numeric.  */
+	      /* Resolver uses the same address family
+	       * as the already resolved target host.
+	       */
 	      int ret;
 	      struct addrinfo tips, *a;
 
 	      memset (&tips, 0, sizeof (tips));
 	      tips.ai_family = ai->ai_family;
-	      tips.ai_flags = AI_NUMERICHOST;
 
 	      ret = getaddrinfo(source, NULL, &tips, &a);
 	      if (ret)

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

Summary of changes:
 ChangeLog    |    7 +++++++
 src/logger.c |    7 +++----
 2 files changed, 10 insertions(+), 4 deletions(-)


hooks/post-receive
-- 
GNU Inetutils 


From MAILER-DAEMON Fri Mar 14 19:58:22 2014
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1WObza-000709-CB
	for mharc-commit-inetutils@gnu.org; Fri, 14 Mar 2014 19:58:22 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:54271)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gnu@gisladisker.se>) id 1WObzX-0006zY-9J
	for commit-inetutils@gnu.org; Fri, 14 Mar 2014 19:58:20 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gnu@gisladisker.se>) id 1WObzW-0006NU-25
	for commit-inetutils@gnu.org; Fri, 14 Mar 2014 19:58:19 -0400
Received: from vcs.savannah.gnu.org ([140.186.70.72]:36804)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gnu@gisladisker.se>) id 1WObzV-0006LG-NS
	for commit-inetutils@gnu.org; Fri, 14 Mar 2014 19:58:17 -0400
Received: from meand by vcs.savannah.gnu.org with local (Exim 4.72)
	(envelope-from <gnu@gisladisker.se>) id 1WObzU-0006T7-Tc
	for commit-inetutils@gnu.org; Fri, 14 Mar 2014 23:58:17 +0000
Date: Fri, 14 Mar 2014 23:58:16 +0000
Message-Id: <E1WObzU-0006T7-Tc@vcs.savannah.gnu.org>
To: commit-inetutils@gnu.org
Subject: [SCM] GNU Inetutils  branch, master,
	updated. inetutils-1_9_2-12-g34b3d3d
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: c889602c71be904522a112c87796a766613d1a44
X-Git-Newrev: 34b3d3d7e439eca9e59564bae2dd93993d5d5474
From: Mats Erik Andersson <gnu@gisladisker.se>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 140.186.70.72
X-BeenThere: commit-inetutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: CVS commit notices for the GNU Internet utilities
	<commit-inetutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/commit-inetutils>,
	<mailto:commit-inetutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/commit-inetutils>
List-Post: <mailto:commit-inetutils@gnu.org>
List-Help: <mailto:commit-inetutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/commit-inetutils>,
	<mailto:commit-inetutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 14 Mar 2014 23:58:20 -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  34b3d3d7e439eca9e59564bae2dd93993d5d5474 (commit)
      from  c889602c71be904522a112c87796a766613d1a44 (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=34b3d3d7e439eca9e59564bae2dd93993d5d5474


commit 34b3d3d7e439eca9e59564bae2dd93993d5d5474
Author: Mats Erik Andersson <gnu@gisladisker.se>
Date:   Sat Mar 15 00:57:15 2014 +0100

    ifconfig: Changeable flags on GNU/Linux.
    
    A previous commit declared too many interface flags
    to be fixed on GNU/Linux.  Liberate them again.

diff --git a/ChangeLog b/ChangeLog
index 635384c..42c5a59 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2014-03-15  Mats Erik Andersson  <gnu@gisladisker.se>
+
+	ifconfig: Changeable flags on GNU/Linux.
+
+	* ifconfig/flags.h (IU_IFF_CANTCHANGE): Remove IFF_POINTOPOINT,
+	IFF_ALLMULTI, IFF_BROADCAST, IFF_MULTICAST, and IFF_PROMISC,
+	since they are changeable on GNU/Linux, and they are included
+	natively in IFF_CANTCHANGE on other systems.
+
 2014-03-13  Mats Erik Andersson  <gnu@gisladisker.se>
 
 	logger: Source address resolution.
diff --git a/ifconfig/flags.h b/ifconfig/flags.h
index f488947..bee24fb 100644
--- a/ifconfig/flags.h
+++ b/ifconfig/flags.h
@@ -43,9 +43,7 @@
 
 /* Manually exclude flags that experience tell us be static.  */
 #define IU_IFF_CANTCHANGE \
-	(IFF_CANTCHANGE | IFF_LOOPBACK | IFF_POINTOPOINT | \
-	 IFF_ALLMULTI | IFF_BROADCAST | IFF_MULTICAST | \
-	 IFF_PROMISC | IFF_RUNNING)
+	(IFF_CANTCHANGE | IFF_LOOPBACK | IFF_RUNNING)
 
 /* Return the name corresponding to the interface flag FLAG.
    If FLAG is unknown, return NULL.
@@ -61,7 +59,7 @@ int if_nametoflag (const char *name, size_t len, int *prev);
 int if_nameztoflag (const char *name, int *prev);
 
 /* Print the flags in FLAGS, using AVOID as in if_flagtoname, and
-   SEPERATOR between individual flags.  Returns the number of
+   SEPARATOR between individual flags.  Returns the number of
    characters printed.  */
 int print_if_flags (int flags, const char *avoid, char seperator);
 

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

Summary of changes:
 ChangeLog        |    9 +++++++++
 ifconfig/flags.h |    6 ++----
 2 files changed, 11 insertions(+), 4 deletions(-)


hooks/post-receive
-- 
GNU Inetutils 


From MAILER-DAEMON Thu Mar 20 16:44:43 2014
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1WQjpT-0004Fj-Gx
	for mharc-commit-inetutils@gnu.org; Thu, 20 Mar 2014 16:44:43 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:51153)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gnu@gisladisker.se>) id 1WQjpQ-0004F6-FO
	for commit-inetutils@gnu.org; Thu, 20 Mar 2014 16:44:41 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gnu@gisladisker.se>) id 1WQjpO-000698-Un
	for commit-inetutils@gnu.org; Thu, 20 Mar 2014 16:44:40 -0400
Received: from vcs.savannah.gnu.org ([140.186.70.72]:46466)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gnu@gisladisker.se>) id 1WQjpO-00068b-Qu
	for commit-inetutils@gnu.org; Thu, 20 Mar 2014 16:44:38 -0400
Received: from meand by vcs.savannah.gnu.org with local (Exim 4.72)
	(envelope-from <gnu@gisladisker.se>) id 1WQjpO-0002Ty-1Z
	for commit-inetutils@gnu.org; Thu, 20 Mar 2014 20:44:38 +0000
Date: Thu, 20 Mar 2014 20:44:38 +0000
Message-Id: <E1WQjpO-0002Ty-1Z@vcs.savannah.gnu.org>
To: commit-inetutils@gnu.org
Subject: [SCM] GNU Inetutils  branch, master,
	updated. inetutils-1_9_2-13-g13c1955
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: 34b3d3d7e439eca9e59564bae2dd93993d5d5474
X-Git-Newrev: 13c195583c3bbc922ff59a61dde336e708851e1d
From: Mats Erik Andersson <gnu@gisladisker.se>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 140.186.70.72
X-BeenThere: commit-inetutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: CVS commit notices for the GNU Internet utilities
	<commit-inetutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/commit-inetutils>,
	<mailto:commit-inetutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/commit-inetutils>
List-Post: <mailto:commit-inetutils@gnu.org>
List-Help: <mailto:commit-inetutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/commit-inetutils>,
	<mailto:commit-inetutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 20 Mar 2014 20:44:41 -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  13c195583c3bbc922ff59a61dde336e708851e1d (commit)
      from  34b3d3d7e439eca9e59564bae2dd93993d5d5474 (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=13c195583c3bbc922ff59a61dde336e708851e1d


commit 13c195583c3bbc922ff59a61dde336e708851e1d
Author: Mats Erik Andersson <gnu@gisladisker.se>
Date:   Thu Mar 20 19:42:45 2014 +0100

    ifconfig: Command line parsing.
    
    Implement flag parsing for BSD and Solaris.
    Accept only changeable flags on GNU/Linux.

diff --git a/ChangeLog b/ChangeLog
index 42c5a59..ea5a2d8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,17 @@
+2014-03-20  Mats Erik Andersson  <gnu@gisladisker.se>
+
+	ifconfig: Command line parsing.
+	Implement flag parsing for BSD and Solaris.
+	Accept only changeable flags on GNU/Linux.
+
+	* ifconfig/system/linux.c (system_parse_opt_rest):
+	Accept only masks which correspond to changeable flags,
+	using IU_IFF_CANTCHANGE.
+	* ifconfig/system/bsd.c, ifconfig/system/solaris.c
+	(system_parse_opt_rest): New variables MASK and REV.
+	Check if the command line argument can be interpreted
+	as a changeable flag argument.
+
 2014-03-15  Mats Erik Andersson  <gnu@gisladisker.se>
 
 	ifconfig: Changeable flags on GNU/Linux.
diff --git a/ifconfig/system/bsd.c b/ifconfig/system/bsd.c
index a30a972..278cf6e 100644
--- a/ifconfig/system/bsd.c
+++ b/ifconfig/system/bsd.c
@@ -60,7 +60,7 @@ system_parse_opt (struct ifconfig **ifp _GL_UNUSED_PARAMETER,
 int
 system_parse_opt_rest (struct ifconfig **ifp, int argc, char *argv[])
 {
-  int i = 0;
+  int i = 0, mask, rev;
   enum
   {
     EXPECT_NOTHING,
@@ -110,11 +110,13 @@ system_parse_opt_rest (struct ifconfig **ifp, int argc, char *argv[])
 	parse_opt_set_flag (*ifp, IFF_UP | IFF_RUNNING, 0);
       else if (!strcmp (argv[i], "down"))
 	parse_opt_set_flag (*ifp, IFF_UP, 1);
+      else if (((mask = if_nameztoflag (argv[i], &rev))
+		& ~IU_IFF_CANTCHANGE) != 0)
+	parse_opt_set_flag (*ifp, mask, rev);
       else
 	{
 	  /* Recognize AF here.  */
-	  /* Also alias, -alias, promisc, -promisc,
-	     create, destroy, monitor, -monitor.  */
+	  /* Also alias, -alias, create, destroy.  */
 	  if (!((*ifp)->valid & IF_VALID_ADDR))
 	    parse_opt_set_address (*ifp, argv[i]);
 	  else if (!((*ifp)->valid & IF_VALID_DSTADDR))
diff --git a/ifconfig/system/linux.c b/ifconfig/system/linux.c
index 653a315..733b1c8 100644
--- a/ifconfig/system/linux.c
+++ b/ifconfig/system/linux.c
@@ -833,7 +833,8 @@ system_parse_opt_rest (struct ifconfig **ifp, int argc, char *argv[])
 	parse_opt_set_flag (*ifp, IFF_UP | IFF_RUNNING, 0);
       else if (!strcmp (argv[i], "down"))
 	parse_opt_set_flag (*ifp, IFF_UP, 1);
-      else if ((mask = if_nameztoflag (argv[i], &rev)) != 0)
+      else if (((mask = if_nameztoflag (argv[i], &rev))
+		& ~IU_IFF_CANTCHANGE) != 0)
 	parse_opt_set_flag (*ifp, mask, rev);
       else
 	parse_opt_set_address (*ifp, argv[i]);
diff --git a/ifconfig/system/solaris.c b/ifconfig/system/solaris.c
index 4c40616..317579e 100644
--- a/ifconfig/system/solaris.c
+++ b/ifconfig/system/solaris.c
@@ -74,7 +74,7 @@ system_parse_opt (struct ifconfig **ifp _GL_UNUSED_PARAMETER,
 int
 system_parse_opt_rest (struct ifconfig **ifp, int argc, char *argv[])
 {
-  int i = 0;
+  int i = 0, mask, rev;
   enum
   {
     EXPECT_NOTHING,
@@ -124,11 +124,13 @@ system_parse_opt_rest (struct ifconfig **ifp, int argc, char *argv[])
 	parse_opt_set_flag (*ifp, IFF_UP | IFF_RUNNING, 0);
       else if (!strcmp (argv[i], "down"))
 	parse_opt_set_flag (*ifp, IFF_UP, 1);
+      else if (((mask = if_nameztoflag (argv[i], &rev))
+		& ~IU_IFF_CANTCHANGE) != 0)
+	parse_opt_set_flag (*ifp, mask, rev);
       else
 	{
 	  /* Recognize AF here.  */
-	  /* Also auto-revarp, trailers, -trailers,
-	     private, -private, arp, -arp, plumb, unplumb.  */
+	  /* Also auto-revarp, plumb, unplumb.  */
 	  if (!((*ifp)->valid & IF_VALID_ADDR))
 	    parse_opt_set_address (*ifp, argv[i]);
 	  else if (!((*ifp)->valid & IF_VALID_DSTADDR))

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

Summary of changes:
 ChangeLog                 |   14 ++++++++++++++
 ifconfig/system/bsd.c     |    8 +++++---
 ifconfig/system/linux.c   |    3 ++-
 ifconfig/system/solaris.c |    8 +++++---
 4 files changed, 26 insertions(+), 7 deletions(-)


hooks/post-receive
-- 
GNU Inetutils 


From MAILER-DAEMON Sat Mar 22 20:04:11 2014
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1WRVtb-0004TP-Bk
	for mharc-commit-inetutils@gnu.org; Sat, 22 Mar 2014 20:04:11 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:59580)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gnu@gisladisker.se>) id 1WRVtZ-0004Ps-08
	for commit-inetutils@gnu.org; Sat, 22 Mar 2014 20:04:10 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gnu@gisladisker.se>) id 1WRVtW-0007yI-5p
	for commit-inetutils@gnu.org; Sat, 22 Mar 2014 20:04:08 -0400
Received: from vcs.savannah.gnu.org ([140.186.70.72]:52806)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gnu@gisladisker.se>) id 1WRVtW-0007yE-2G
	for commit-inetutils@gnu.org; Sat, 22 Mar 2014 20:04:06 -0400
Received: from meand by vcs.savannah.gnu.org with local (Exim 4.72)
	(envelope-from <gnu@gisladisker.se>) id 1WRVtV-00038g-4L
	for commit-inetutils@gnu.org; Sun, 23 Mar 2014 00:04:05 +0000
Date: Sun, 23 Mar 2014 00:04:05 +0000
Message-Id: <E1WRVtV-00038g-4L@vcs.savannah.gnu.org>
To: commit-inetutils@gnu.org
Subject: [SCM] GNU Inetutils  branch, master,
	updated. inetutils-1_9_2-14-g765036a
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: 13c195583c3bbc922ff59a61dde336e708851e1d
X-Git-Newrev: 765036a319083f5861c1e056da2eaf23e1e20758
From: Mats Erik Andersson <gnu@gisladisker.se>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 140.186.70.72
X-BeenThere: commit-inetutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: CVS commit notices for the GNU Internet utilities
	<commit-inetutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/commit-inetutils>,
	<mailto:commit-inetutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/commit-inetutils>
List-Post: <mailto:commit-inetutils@gnu.org>
List-Help: <mailto:commit-inetutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/commit-inetutils>,
	<mailto:commit-inetutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 23 Mar 2014 00:04: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  765036a319083f5861c1e056da2eaf23e1e20758 (commit)
      from  13c195583c3bbc922ff59a61dde336e708851e1d (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=765036a319083f5861c1e056da2eaf23e1e20758


commit 765036a319083f5861c1e056da2eaf23e1e20758
Author: Mats Erik Andersson <gnu@gisladisker.se>
Date:   Sun Mar 23 00:31:51 2014 +0100

    ifconfig: Parse address family.
    
    Have all supported systems accept an address
    family parameter in the expected form.

diff --git a/ChangeLog b/ChangeLog
index ea5a2d8..c63d0fa 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,19 @@
+2014-03-23  Mats Erik Andersson  <gnu@gisladisker.se>
+
+	ifconfig: Parse address family.
+	Allow for address family argument on supported systems.
+
+	* ifconfig/system/bsd.c (system_parse_opt_rest): New enum
+	values EXPECT_COMMAND and EXPECT_AF.  Use the first to detect
+	`create' and `destroy', but claiming lack of support.  Accept
+	`inet' as family, but reject `inet6'.  Rewrite return status.
+	* ifconfig/system/linux.c (system_parse_opt_rest): Rename
+	enum value EXPECT_INET to EXPECT_AF.  Detect family `inet6',
+	but reject it.
+	* ifconfig/system/solaris.c (system_parse_opt_rest): New enum
+	value EXPECT_AF.  Accept `inet' as address family argument,
+	but reject `inet6'.  Rewrite return status.
+
 2014-03-20  Mats Erik Andersson  <gnu@gisladisker.se>
 
 	ifconfig: Command line parsing.
diff --git a/ifconfig/system/bsd.c b/ifconfig/system/bsd.c
index 278cf6e..130c558 100644
--- a/ifconfig/system/bsd.c
+++ b/ifconfig/system/bsd.c
@@ -64,11 +64,13 @@ system_parse_opt_rest (struct ifconfig **ifp, int argc, char *argv[])
   enum
   {
     EXPECT_NOTHING,
+    EXPECT_COMMAND,
+    EXPECT_AF,
     EXPECT_BROADCAST,
     EXPECT_NETMASK,
     EXPECT_METRIC,
     EXPECT_MTU
-  } expect = EXPECT_NOTHING;
+  } expect = EXPECT_COMMAND;
 
   *ifp = parse_opt_new_ifs (argv[0]);
 
@@ -92,10 +94,37 @@ system_parse_opt_rest (struct ifconfig **ifp, int argc, char *argv[])
 	  parse_opt_set_metric (*ifp, argv[i]);
 	  break;
 
+	case EXPECT_COMMAND:
+	  expect = EXPECT_AF;		/* Applicable at creation.  */
+	  if (!strcmp (argv[i], "create"))
+	    {
+	      error (0, 0, "interface creation is not supported");
+	      return 0;
+	    }
+	  else if (!strcmp (argv[i], "destroy"))
+	    {
+	      error (0, 0, "interface destruction is not supported");
+	      return 0;
+	    }
+	  break;
+
+	case EXPECT_AF:
 	case EXPECT_NOTHING:
 	  break;
 	}
 
+      if (expect == EXPECT_AF)	/* Address selection is single shot.  */
+	{
+	  expect = EXPECT_NOTHING;
+	  if (!strcmp (argv[i], "inet"))
+	    continue;
+	  else if (!strcmp (argv[i], "inet6"))
+	    {
+	      error (0, 0, "%s is not a supported address family", argv[i]);
+	      return 0;
+	    }
+	}
+
       if (expect != EXPECT_NOTHING)
 	expect = EXPECT_NOTHING;
       else if (!strcmp (argv[i], "broadcast"))
@@ -115,8 +144,7 @@ system_parse_opt_rest (struct ifconfig **ifp, int argc, char *argv[])
 	parse_opt_set_flag (*ifp, mask, rev);
       else
 	{
-	  /* Recognize AF here.  */
-	  /* Also alias, -alias, create, destroy.  */
+	  /* Also alias, -alias.  */
 	  if (!((*ifp)->valid & IF_VALID_ADDR))
 	    parse_opt_set_address (*ifp, argv[i]);
 	  else if (!((*ifp)->valid & IF_VALID_DSTADDR))
@@ -142,10 +170,12 @@ system_parse_opt_rest (struct ifconfig **ifp, int argc, char *argv[])
       error (0, 0, "option `mtu' requires an argument");
       break;
 
+    case EXPECT_AF:		/* dummy */
+    case EXPECT_COMMAND:	/* dummy */
     case EXPECT_NOTHING:
-      break;
+      return 1;
     }
-  return expect == EXPECT_NOTHING;
+  return 0;
 }
 
 int
diff --git a/ifconfig/system/linux.c b/ifconfig/system/linux.c
index 733b1c8..00309ed 100644
--- a/ifconfig/system/linux.c
+++ b/ifconfig/system/linux.c
@@ -763,7 +763,7 @@ system_parse_opt_rest (struct ifconfig **ifp, int argc, char *argv[])
   int i = 0;
   enum
   {
-    EXPECT_INET,
+    EXPECT_AF,
     EXPECT_NOTHING,
     EXPECT_BROADCAST,
     EXPECT_DSTADDR,
@@ -771,7 +771,7 @@ system_parse_opt_rest (struct ifconfig **ifp, int argc, char *argv[])
     EXPECT_MTU,
     EXPECT_METRIC,
     EXPECT_TXQLEN,
-  } expect = EXPECT_INET;
+  } expect = EXPECT_AF;
   int mask, rev;
 
   *ifp = parse_opt_new_ifs (argv[0]);
@@ -804,10 +804,15 @@ system_parse_opt_rest (struct ifconfig **ifp, int argc, char *argv[])
 	  system_parse_opt_set_txqlen (*ifp, argv[i]);
 	  break;
 
-	case EXPECT_INET:
+	case EXPECT_AF:
 	  expect = EXPECT_NOTHING;
 	  if (!strcmp (argv[i], "inet"))
 	    continue;
+	  else if (!strcmp (argv[i], "inet6"))
+	    {
+	      error (0, 0, "%s is not a supported address family", argv[i]);
+	      return 0;
+	    }
 	  break;
 
 	case EXPECT_NOTHING:
@@ -866,7 +871,7 @@ system_parse_opt_rest (struct ifconfig **ifp, int argc, char *argv[])
       error (0, 0, "option `txqueuelen' requires an argument");
       break;
 
-    case EXPECT_INET:
+    case EXPECT_AF:
     case EXPECT_NOTHING:
       return 1;
     }
diff --git a/ifconfig/system/solaris.c b/ifconfig/system/solaris.c
index 317579e..7bdf07e 100644
--- a/ifconfig/system/solaris.c
+++ b/ifconfig/system/solaris.c
@@ -78,11 +78,12 @@ system_parse_opt_rest (struct ifconfig **ifp, int argc, char *argv[])
   enum
   {
     EXPECT_NOTHING,
+    EXPECT_AF,
     EXPECT_BROADCAST,
     EXPECT_NETMASK,
     EXPECT_METRIC,
     EXPECT_MTU
-  } expect = EXPECT_NOTHING;
+  } expect = EXPECT_AF;
 
   *ifp = parse_opt_new_ifs (argv[0]);
 
@@ -106,6 +107,17 @@ system_parse_opt_rest (struct ifconfig **ifp, int argc, char *argv[])
 	  parse_opt_set_metric (*ifp, argv[i]);
 	  break;
 
+	case EXPECT_AF:
+	  expect = EXPECT_NOTHING;
+	  if (!strcmp (argv[i], "inet"))
+	    continue;
+	  else if (!strcmp (argv[i], "inet6"))
+	    {
+	      error (0, 0, "%s is not a supported address family", argv[i]);
+	      return 0;
+	    }
+	  break;
+
 	case EXPECT_NOTHING:
 	  break;
 	}
@@ -129,7 +141,6 @@ system_parse_opt_rest (struct ifconfig **ifp, int argc, char *argv[])
 	parse_opt_set_flag (*ifp, mask, rev);
       else
 	{
-	  /* Recognize AF here.  */
 	  /* Also auto-revarp, plumb, unplumb.  */
 	  if (!((*ifp)->valid & IF_VALID_ADDR))
 	    parse_opt_set_address (*ifp, argv[i]);
@@ -156,10 +167,11 @@ system_parse_opt_rest (struct ifconfig **ifp, int argc, char *argv[])
       error (0, 0, "option `mtu' requires an argument");
       break;
 
+    case EXPECT_AF:
     case EXPECT_NOTHING:
-      break;
+      return 1;
     }
-  return expect == EXPECT_NOTHING;
+  return 0;
 }
 
 int

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

Summary of changes:
 ChangeLog                 |   16 ++++++++++++++++
 ifconfig/system/bsd.c     |   40 +++++++++++++++++++++++++++++++++++-----
 ifconfig/system/linux.c   |   13 +++++++++----
 ifconfig/system/solaris.c |   20 ++++++++++++++++----
 4 files changed, 76 insertions(+), 13 deletions(-)


hooks/post-receive
-- 
GNU Inetutils 


From MAILER-DAEMON Fri Mar 28 06:28:34 2014
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1WTU1a-0006vX-Q5
	for mharc-commit-inetutils@gnu.org; Fri, 28 Mar 2014 06:28:34 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:46316)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gnu@gisladisker.se>) id 1WTU1X-0006v4-Qd
	for commit-inetutils@gnu.org; Fri, 28 Mar 2014 06:28:33 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gnu@gisladisker.se>) id 1WTU1W-0002ji-Aw
	for commit-inetutils@gnu.org; Fri, 28 Mar 2014 06:28:31 -0400
Received: from vcs.savannah.gnu.org ([140.186.70.72]:33437)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gnu@gisladisker.se>) id 1WTU1W-0002jd-7d
	for commit-inetutils@gnu.org; Fri, 28 Mar 2014 06:28:30 -0400
Received: from meand by vcs.savannah.gnu.org with local (Exim 4.72)
	(envelope-from <gnu@gisladisker.se>) id 1WTU1V-0006o7-EY
	for commit-inetutils@gnu.org; Fri, 28 Mar 2014 10:28:29 +0000
Date: Fri, 28 Mar 2014 10:28:29 +0000
Message-Id: <E1WTU1V-0006o7-EY@vcs.savannah.gnu.org>
To: commit-inetutils@gnu.org
Subject: [SCM] GNU Inetutils  branch, master,
	updated. inetutils-1_9_2-15-g1db1e91
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: 765036a319083f5861c1e056da2eaf23e1e20758
X-Git-Newrev: 1db1e91f34f1c31a297c3c65417ac4f93a7a404f
From: Mats Erik Andersson <gnu@gisladisker.se>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 140.186.70.72
X-BeenThere: commit-inetutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: CVS commit notices for the GNU Internet utilities
	<commit-inetutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/commit-inetutils>,
	<mailto:commit-inetutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/commit-inetutils>
List-Post: <mailto:commit-inetutils@gnu.org>
List-Help: <mailto:commit-inetutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/commit-inetutils>,
	<mailto:commit-inetutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 28 Mar 2014 10:28:33 -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  1db1e91f34f1c31a297c3c65417ac4f93a7a404f (commit)
      from  765036a319083f5861c1e056da2eaf23e1e20758 (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=1db1e91f34f1c31a297c3c65417ac4f93a7a404f


commit 1db1e91f34f1c31a297c3c65417ac4f93a7a404f
Author: Mats Erik Andersson <gnu@gisladisker.se>
Date:   Fri Mar 28 11:21:35 2014 +0100

    syslogd: Local time option.

diff --git a/ChangeLog b/ChangeLog
index c63d0fa..a5155b9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,16 @@
+2014-03-28  Mats Erik Andersson  <gnu@gisladisker.se>
+
+	syslogd: Local time option.
+
+	* src/syslogd.c (set_local_time): New variable.
+	(option enum): Remove OPT_PIDFILE.
+	(argp_options) <pidfile>: New alias 'P'.
+	<-T/--local-time>: New option.
+	(parse_opt) <case 'P'>: Replaces OPT_PIDFILE.
+	<case 'T'>: New case.
+	(logmsg): If `set_local_time' is set, use NOW to generate
+	a time stamp, not the initial portion of the message.
+
 2014-03-23  Mats Erik Andersson  <gnu@gisladisker.se>
 
 	ifconfig: Parse address family.
diff --git a/NEWS b/NEWS
index 41a008b..ec49848 100644
--- a/NEWS
+++ b/NEWS
@@ -5,6 +5,16 @@ Foundation, Inc.  See the end of this file for license conditions.
 
 Please send inetutils bug reports to <bug-inetutils@gnu.org>.
 
+Version 1.9.3:
+
+* syslogd
+
+A new switch `-T/--local-time' makes the service ignore a time
+stamp passed on by the remote host, instead recording the local
+time at the moment the message was recorded.
+As a short form of  `--pidfile', the switch `-P' is new.
+
+
 December 23, 2013
 Version 1.9.2:
 
diff --git a/doc/inetutils.texi b/doc/inetutils.texi
index ede0772..b2b48a8 100644
--- a/doc/inetutils.texi
+++ b/doc/inetutils.texi
@@ -3304,7 +3304,9 @@ Override configuration (the default file is @file{/etc/syslog.conf}).
 @opindex --rcdir
 Override configuration directory (the default is @file{/etc/syslog.d}).
 
-@item --pidfile=@var{file}
+@item -P @var{file}
+@itemx --pidfile=@var{file}
+@opindex -P
 @opindex --pidfile
 Override pidfile (the default file is @file{/var/run/syslogd.pid}).
 
@@ -3402,6 +3404,15 @@ allowed.
 @opindex -s
 List of domains which should be stripped from the FQDN of hosts before
 logging their name.  Multiple lists are allowed.
+
+@item -T
+@itemx --local-time
+@opindex -T
+@opindex --local-time
+Ignore any time contained in a received message.
+In its stead, record the time of reception on the local
+system.  This circumvents problems caused by remote hosts
+with skewed clocks.
 @end table
 
 @section Configuration file
diff --git a/src/syslogd.c b/src/syslogd.c
index 48b8d9c..cc96439 100644
--- a/src/syslogd.c
+++ b/src/syslogd.c
@@ -315,6 +315,7 @@ int NoForward;			/* Don't forward messages.  */
 time_t now;			/* Time use for mark and forward supending.  */
 int force_sync;			/* GNU/Linux behaviour to sync on every line.
 				   This off by default. Set to 1 to enable.  */
+int set_local_time = 0;		/* Record local time, not message time.  */
 
 const char args_doc[] = "";
 const char doc[] = "Log system messages.";
@@ -324,7 +325,6 @@ enum {
   OPT_NO_FORWARD = 256,
   OPT_NO_KLOG,
   OPT_NO_UNIXAF,
-  OPT_PIDFILE,
   OPT_IPANY
 };
 
@@ -356,7 +356,7 @@ static struct argp_option argp_options[] = {
 #endif
   {"no-unixaf", OPT_NO_UNIXAF, NULL, 0, "do not listen on unix domain "
    "sockets (overrides -a and -p)", GRP+1},
-  {"pidfile", OPT_PIDFILE, "FILE", 0, "override pidfile (default: "
+  {"pidfile", 'P', "FILE", 0, "override pidfile (default: "
    PATH_LOGPID ")", GRP+1},
   {"rcfile", 'f', "FILE", 0, "override configuration file (default: "
    PATH_LOGCONF ")",
@@ -366,6 +366,7 @@ static struct argp_option argp_options[] = {
   {"socket", 'p', "FILE", 0, "override default unix domain socket " PATH_LOG,
    GRP+1},
   {"sync", 'S', NULL, 0, "force a file sync on every line", GRP+1},
+  {"local-time", 'T', NULL, 0, "set local time on received messages", GRP+1},
 #undef GRP
   {NULL, 0, NULL, 0, NULL, 0}
 };
@@ -446,7 +447,7 @@ parse_opt (int key, char *arg, struct argp_state *state)
       NoUnixAF = 1;
       break;
 
-    case OPT_PIDFILE:
+    case 'P':
       PidFile = arg;
       break;
 
@@ -467,6 +468,10 @@ parse_opt (int key, char *arg, struct argp_state *state)
       force_sync = 1;
       break;
 
+    case 'T':
+      set_local_time = 1;
+      break;
+
     default:
       return ARGP_ERR_UNKNOWN;
     }
@@ -1181,7 +1186,10 @@ logmsg (int pri, const char *msg, const char *from, int flags)
     timestamp = ctime (&now) + 4;
   else
     {
-      timestamp = msg;
+      if (set_local_time)
+	timestamp = ctime (&now) + 4;
+      else
+	timestamp = msg;
       msg += 16;
       msglen -= 16;
     }

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

Summary of changes:
 ChangeLog          |   13 +++++++++++++
 NEWS               |   10 ++++++++++
 doc/inetutils.texi |   13 ++++++++++++-
 src/syslogd.c      |   16 ++++++++++++----
 4 files changed, 47 insertions(+), 5 deletions(-)


hooks/post-receive
-- 
GNU Inetutils 


