From MAILER-DAEMON Fri Aug 01 11:40:16 2014
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1XDEwK-0008Cq-MH
	for mharc-commit-inetutils@gnu.org; Fri, 01 Aug 2014 11:40:16 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:44086)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gnu@gisladisker.se>) id 1XDEwD-0007uu-34
	for commit-inetutils@gnu.org; Fri, 01 Aug 2014 11:40:14 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gnu@gisladisker.se>) id 1XDEwB-0000eQ-Ei
	for commit-inetutils@gnu.org; Fri, 01 Aug 2014 11:40:09 -0400
Received: from vcs.savannah.gnu.org ([140.186.70.72]:60521)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gnu@gisladisker.se>) id 1XDEwB-0000e1-At
	for commit-inetutils@gnu.org; Fri, 01 Aug 2014 11:40:07 -0400
Received: from meand by vcs.savannah.gnu.org with local (Exim 4.72)
	(envelope-from <gnu@gisladisker.se>) id 1XDEw9-0006Ie-HF
	for commit-inetutils@gnu.org; Fri, 01 Aug 2014 15:40:06 +0000
Date: Fri, 01 Aug 2014 15:40:05 +0000
Message-Id: <E1XDEw9-0006Ie-HF@vcs.savannah.gnu.org>
To: commit-inetutils@gnu.org
Subject: [SCM] GNU Inetutils  branch, master,
	updated. inetutils-1_9_2-33-g2a7913b
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: e5e91cdb14b3dbb0dfd02c7f2f60b2b0abc4ff1e
X-Git-Newrev: 2a7913b37551105ab311464a11eb6edd31919610
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, 01 Aug 2014 15:40:14 -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  2a7913b37551105ab311464a11eb6edd31919610 (commit)
      from  e5e91cdb14b3dbb0dfd02c7f2f60b2b0abc4ff1e (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=2a7913b37551105ab311464a11eb6edd31919610


commit 2a7913b37551105ab311464a11eb6edd31919610
Author: Mats Erik Andersson <gnu@gisladisker.se>
Date:   Fri Aug 1 14:15:44 2014 +0200

    ping, ping6: Repair pattern production.

diff --git a/ChangeLog b/ChangeLog
index fe50b73..4651155 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,22 @@
 2014-08-01  Mats Erik Andersson  <gnu@gisladisker.se>
 
+	ping, ping6: Repair pattern production.
+	A pattern stated on the command line was never made
+	productive, instead only nulls were inserted to the
+	correct length.
+
+	* ping/ping.c, ping/ping6.c (pattern_len): Set to MAXPATTERN.
+	(parse_opt): Size of PATTERN is now MAXPATTERN.
+
+	* ping/ping_common.h (MAXPATTERN): New macro.
+	* ping/ping_common.c (init_data_buffer): Increment I before
+	checking for end of pattern.  This avoids an insertion of
+	the closing null character.
+	(decode_pattern): Remove _GL_UNUSED_PARAMETER on `pattern_data'.
+	Insert scanned data C into pattern buffer.
+
+2014-08-01  Mats Erik Andersson  <gnu@gisladisker.se>
+
 	* ftp/ftp.c (ptransfer): Change BS to be of type float.
 	Improve readability by having speed estimates printed
 	as `Mbytes/s', `kbytes/s', or `bytes/s' as suitable.
diff --git a/ping/ping.c b/ping/ping.c
index 843beeb..c2279ec 100644
--- a/ping/ping.c
+++ b/ping/ping.c
@@ -62,7 +62,7 @@ PING *ping;
 bool is_root = false;
 unsigned char *data_buffer;
 unsigned char *patptr;
-int pattern_len = 16;
+int pattern_len = MAXPATTERN;
 int socket_type;
 size_t count = DEFAULT_PING_COUNT;
 size_t interval;
@@ -149,7 +149,7 @@ static error_t
 parse_opt (int key, char *arg, struct argp_state *state)
 {
   char *endptr;
-  static unsigned char pattern[16];
+  static unsigned char pattern[MAXPATTERN];
   double v;
 
   switch (key)
diff --git a/ping/ping6.c b/ping/ping6.c
index a998d2b..383e679 100644
--- a/ping/ping6.c
+++ b/ping/ping6.c
@@ -59,7 +59,7 @@ bool is_root = false;
 unsigned char *data_buffer;
 unsigned char *patptr;
 int one = 1;
-int pattern_len = 16;
+int pattern_len = MAXPATTERN;
 size_t data_length = PING_DATALEN;
 size_t count = DEFAULT_PING_COUNT;
 size_t interval;
@@ -130,7 +130,7 @@ static error_t
 parse_opt (int key, char *arg, struct argp_state *state)
 {
   char *endptr;
-  static unsigned char pattern[16];
+  static unsigned char pattern[MAXPATTERN];
 
   switch (key)
     {
diff --git a/ping/ping_common.c b/ping/ping_common.c
index 42cf9eb..de6933a 100644
--- a/ping/ping_common.c
+++ b/ping/ping_common.c
@@ -75,7 +75,7 @@ init_data_buffer (unsigned char * pat, size_t len)
       for (p = data_buffer; p < data_buffer + data_length; p++)
 	{
 	  *p = pat[i];
-	  if (i++ >= len)
+	  if (++i >= len)
 	    i = 0;
 	}
     }
@@ -88,7 +88,7 @@ init_data_buffer (unsigned char * pat, size_t len)
 
 void
 decode_pattern (const char *text, int *pattern_len,
-		unsigned char *pattern_data _GL_UNUSED_PARAMETER)
+		unsigned char *pattern_data)
 {
   int i, c, off;
 
@@ -98,6 +98,7 @@ decode_pattern (const char *text, int *pattern_len,
         error (EXIT_FAILURE, 0, "error in pattern near %s", text);
 
       text += off;
+      pattern_data[i] = c;
     }
   *pattern_len = i;
 }
diff --git a/ping/ping_common.h b/ping/ping_common.h
index ca47f2d..1f692e4 100644
--- a/ping/ping_common.h
+++ b/ping/ping_common.h
@@ -27,7 +27,8 @@
 
 #include <stdbool.h>
 
-#define MAXWAIT         10      /* max seconds to wait for response */
+#define MAXWAIT         10	/* Max seconds to wait for response.  */
+#define MAXPATTERN      16	/* Maximal length of pattern.  */
 
 #define OPT_FLOOD       0x001
 #define OPT_INTERVAL    0x002

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

Summary of changes:
 ChangeLog          |   17 +++++++++++++++++
 ping/ping.c        |    4 ++--
 ping/ping6.c       |    4 ++--
 ping/ping_common.c |    5 +++--
 ping/ping_common.h |    3 ++-
 5 files changed, 26 insertions(+), 7 deletions(-)


hooks/post-receive
-- 
GNU Inetutils 


From MAILER-DAEMON Sat Aug 02 16:14:19 2014
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1XDfh5-0003Wd-3O
	for mharc-commit-inetutils@gnu.org; Sat, 02 Aug 2014 16:14:19 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:45064)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gnu@gisladisker.se>) id 1XDfh0-0003U8-Qy
	for commit-inetutils@gnu.org; Sat, 02 Aug 2014 16:14:16 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gnu@gisladisker.se>) id 1XDfgy-00070y-Sk
	for commit-inetutils@gnu.org; Sat, 02 Aug 2014 16:14:14 -0400
Received: from vcs.savannah.gnu.org ([140.186.70.72]:45605)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gnu@gisladisker.se>) id 1XDfgy-00070r-OS
	for commit-inetutils@gnu.org; Sat, 02 Aug 2014 16:14:12 -0400
Received: from meand by vcs.savannah.gnu.org with local (Exim 4.72)
	(envelope-from <gnu@gisladisker.se>) id 1XDfgx-0000WZ-ID
	for commit-inetutils@gnu.org; Sat, 02 Aug 2014 20:14:12 +0000
Date: Sat, 02 Aug 2014 20:14:11 +0000
Message-Id: <E1XDfgx-0000WZ-ID@vcs.savannah.gnu.org>
To: commit-inetutils@gnu.org
Subject: [SCM] GNU Inetutils  branch, master,
	updated. inetutils-1_9_2-34-gd7139b7
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: 2a7913b37551105ab311464a11eb6edd31919610
X-Git-Newrev: d7139b7ea8ee6a9c9751aaab6d23c328f590a974
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: Sat, 02 Aug 2014 20:14:17 -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  d7139b7ea8ee6a9c9751aaab6d23c328f590a974 (commit)
      from  2a7913b37551105ab311464a11eb6edd31919610 (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=d7139b7ea8ee6a9c9751aaab6d23c328f590a974


commit d7139b7ea8ee6a9c9751aaab6d23c328f590a974
Author: Mats Erik Andersson <gnu@gisladisker.se>
Date:   Sat Aug 2 21:37:00 2014 +0200

    More tests for more code coverage.

diff --git a/ChangeLog b/ChangeLog
index 4651155..b625209 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,17 @@
+2014-08-02  Mats Erik Andersson  <gnu@gisladisker.se>
+
+	More tests for better code coverage.
+
+	* tests/Makefile.am [ENABLE_libls] (dist_check_SCRIPTS):
+	Add `libls.sh'.
+	[ENABLE_ftp] (dist_check_SCRIPTS): Add `ftp-parser.sh'.
+	* tests/ftp-parser.sh: New script.
+	* tests/ifconfig.sh: Add more test cases.
+	* tests/libls.sh: New script.
+
+	* ifconfig/options.c (formats): Add format `?' as a synonym
+	for format `help'.
+
 2014-08-01  Mats Erik Andersson  <gnu@gisladisker.se>
 
 	ping, ping6: Repair pattern production.
diff --git a/ifconfig/options.c b/ifconfig/options.c
index 2c18ac8..b301111 100644
--- a/ifconfig/options.c
+++ b/ifconfig/options.c
@@ -195,6 +195,10 @@ struct format formats[] = {
    "${index?}{}"
    "{${error}{${progname}: error: interface `${name}' does not exist${\\n}}"
    "${exit}{1}}"},
+  {"?",
+   "Synonym for `help'.",
+   "${format}{help}"
+  },
   {"help",
    "Display this help output.",
    "${foreachformat}{"
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 014af85..5490189 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -26,6 +26,8 @@ identify_LDADD =
 
 check_PROGRAMS = localhost readutmp waitdaemon
 
+dist_check_SCRIPTS = utmp.sh
+
 if ENABLE_inetd
 check_PROGRAMS += addrpeek tcpget
 endif
@@ -33,9 +35,9 @@ endif
 if ENABLE_libls
 noinst_PROGRAMS += ls
 ls_LDADD = $(LIBLS) $(iu_LIBRARIES)
+dist_check_SCRIPTS += libls.sh
 endif
 
-dist_check_SCRIPTS = utmp.sh
 if ENABLE_ping
 dist_check_SCRIPTS += ping-localhost.sh
 endif
@@ -55,6 +57,10 @@ dist_check_SCRIPTS += syslogd.sh
 endif
 endif
 
+if ENABLE_ftp
+dist_check_SCRIPTS += ftp-parser.sh
+endif
+
 if ENABLE_inetd
 if ENABLE_ftp
 if ENABLE_ftpd
diff --git a/tests/ftp-parser.sh b/tests/ftp-parser.sh
new file mode 100755
index 0000000..cec2121
--- /dev/null
+++ b/tests/ftp-parser.sh
@@ -0,0 +1,107 @@
+#!/bin/sh
+
+# Copyright (C) 2014 Free Software Foundation, Inc.
+#
+# This file is part of GNU Inetutils.
+#
+# GNU Inetutils is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or (at
+# your option) any later version.
+#
+# GNU Inetutils is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program.  If not, see `http://www.gnu.org/licenses/'.
+
+# Exercise the internal command interpreter of `ftp',
+# without any networking.  Intended for code coverage
+# testing.
+
+set -u
+
+. ./tools.sh
+
+: ${EXEEXT:=}
+silence=
+bucket=
+
+# Executable under test.
+#
+FTP=${FTP:-../ftp/ftp$EXEEXT}
+
+if test ! -x "$FTP"; then
+    echo >&2 "Missing executable '$FTP'.  Skipping test."
+    exit 77
+fi
+
+if test -z "${VERBOSE+set}"; then
+    silence=:
+    bucket='>/dev/null'
+fi
+
+if test -n "${VERBOSE:-}"; then
+    set -x
+    $FTP --version | $SED '1q'
+fi
+
+errno=0
+
+# Check that a client is not connected.
+#
+reply=`echo 'cd /tmp' | $FTP | $GREP -cv 'Not connected\.'`
+test $reply -eq 0 || { errno=1
+  echo >&2 'Failed respond to missing connection.'; }
+
+# Check that help is plentiful.
+#
+reply=`echo help | $FTP | $SED -n '$='`
+test $reply -ge 18 || { errno=1
+  echo >&2 'Unexpectedly short help listing.'; }
+
+# Check change from passive mode to active mode.
+#
+reply=`echo passive | $FTP -p | $GREP -cv 'Passive mode off\.'`
+test $reply -eq 0 || { errno=1
+  echo >&2 'Failed while switching back to active mode.'; }
+
+# Check address mode.
+reply=`echo ipv4 | $FTP --ipv6 | $GREP -cv 'Selecting addresses: IPv4'`
+test $reply -eq 0 || { errno=1
+  echo >&2 'Failed to reset address family by command.'; }
+
+# Step size for hash markers.
+#
+tell='hash 7M
+hash 12k'
+reply=`echo "$tell" | $FTP -v | $GREP -c -e 12288 -e 7340032`
+
+test $reply -eq 2 || { errno=1
+  echo >&2 'Failed to parse step sizes for hash printing.'; }
+
+# A set of mixed commands for the sake of code coverage.
+#
+tell='bell
+case
+hash
+nmap
+runique
+sunique
+epsv4
+lcd /tmp
+lpwd'
+reply=`echo "$tell" | $FTP`
+
+test `echo "$reply" | $SED -n '$='` \
+     -eq `echo "$tell" | $SED -n '$='` \
+&& test `echo "$reply" | $GREP -c 'Local directory is /tmp'` -eq 1 \
+|| { errno=1; echo >&2 'Failed to set local directory.'; }
+
+# Summary of work.
+#
+test $errno -ne 0 || $silence echo "Successful testing".
+
+exit $errno
diff --git a/tests/ifconfig.sh b/tests/ifconfig.sh
index d5820f9..bc34e6c 100755
--- a/tests/ifconfig.sh
+++ b/tests/ifconfig.sh
@@ -48,11 +48,10 @@ fi
 
 . ./tools.sh
 
-# Executable uder test.
+# Executable under test.
 #
 IFCONFIG=${IFCONFIG:-../ifconfig/ifconfig$EXEEXT}
 
-
 if test ! -x "$IFCONFIG"; then
     echo >&2 "Missing executable '$IFCONFIG'.  Skipping test."
     exit 77
@@ -92,14 +91,38 @@ find_lo_addr () {
 
 errno=0
 
+# Check for loopback address in all formats displaying the
+# standard address 127.0.0.1.
+#
 for fmt in ${FORMAT:-gnu gnu-one-entry net-tools osf unix}; do
     $silence echo "Checking format $fmt."
     find_lo_addr $fmt || { errno=1; echo >&2 "Failed with format '$fmt'."; }
 done
 
+# Check that all listed adapters are responding affirmatively
+# to all formats, but discard all output.
+#
+for fmt in check default gnu gnu-one-entry netstat net-tools osf unix
+do
+    for iface in $IF_LIST; do
+	$IFCONFIG --format=$fmt -i $iface >/dev/null ||
+	    { errno=1;
+	      echo >&2 "Failed with format '$fmt', adapter '$iface'."
+	    }
+    done
+done
+
+# Check that short format and full printout succeed; discard output.
+#
+$IFCONFIG --short >/dev/null ||
+    { errno=1; echo >&2 'Failed with short format.'; }
+
+$IFCONFIG --all >/dev/null ||
+    { errno=1; echo >&2 'Failed while listing all.'; }
+
 # Informational check whether the legacy form use
 # is implemented.  No error produced, only message.
-
+#
 if $IFCONFIG $LO >/dev/null 2>&1; then
     :
 else
diff --git a/tests/libls.sh b/tests/libls.sh
new file mode 100755
index 0000000..a8ed8eb
--- /dev/null
+++ b/tests/libls.sh
@@ -0,0 +1,97 @@
+#!/bin/sh
+
+# Copyright (C) 2014 Free Software Foundation, Inc.
+#
+# This file is part of GNU Inetutils.
+#
+# GNU Inetutils is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or (at
+# your option) any later version.
+#
+# GNU Inetutils is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program.  If not, see `http://www.gnu.org/licenses/'.
+
+# Check response in libls.
+# Very simple testing, aiming mostly at code coverage.
+
+set -u
+
+. ./tools.sh
+
+: ${EXEEXT:=}
+silence=
+bucket=
+
+# Executable under test.
+#
+LS=${LS:-./ls$EXEEXT}
+
+if test ! -x "$LS"; then
+    echo >&2 "Missing executable '$LS'.  Skipping test."
+    exit 77
+fi
+
+if test -z "${VERBOSE+set}"; then
+    silence=:
+    bucket='>/dev/null'
+fi
+
+# Several runs with different switches are compared by
+# a simple count of printed lines.
+#
+REPLY_a1=`$LS -a1 | $SED -n '$='`
+REPLY_A1=`$LS -A1 | $SED -n '$='`
+
+REPLY_C=`$LS -C`
+REPLY_Cf=`$LS -Cf`
+REPLY_Cr=`$LS -Cr`
+REPLY_Ct=`$LS -Ct`
+REPLY_x=`$LS -x`
+REPLY_m=`$LS -m`
+
+REPLY_l=`$LS -l`
+REPLY_lT=`$LS -l`
+REPLY_n=`$LS -n`
+
+# In an attempt to counteract lack of subsecond accuracy,
+# probe the parent directory where timing is known to be more
+# varied, than in the subdirectory "tests/".
+#
+REPLY_Ccts=`$LS -Ccts ..`
+REPLY_Cuts=`$LS -Cuts ..`
+
+errno=0
+
+test $REPLY_a1 -eq `expr $REPLY_A1 + 2` ||
+  { errno=1; echo >&2 'Failed to suppress "." and "..".'; }
+
+test x"$REPLY_C" != x"$REPLY_Cf" ||
+  { errno=1; echo >&2 'Failed to disable sorting with "-f".'; }
+
+test x"$REPLY_C" != x"$REPLY_Cr" ||
+  { errno=1; echo >&2 'Failed to reverse sorting with "-r".'; }
+
+test x"$REPLY_C" != x"$REPLY_Ct" ||
+  { errno=1; echo >&2 'Failed to sort on modification with "-t".'; }
+
+test x"$REPLY_C" != x"$REPLY_x" ||
+  { errno=1; echo >&2 'Failed to distinguish "-C" from "-x".'; }
+
+test x"$REPLY_C" != x"$REPLY_m" ||
+  { errno=1; echo >&2 'Failed to distinguish "-C" from "-m".'; }
+
+test x"$REPLY_l" != x"$REPLY_n" ||
+  { errno=1; echo >&2 'Failed to distinguish "-l" from "-n".'; }
+
+test x"$REPLY_Ccts" != x"$REPLY_Cuts" ||
+  { errno=1; echo >&2 'Failed to distinguish "-u" from "-c".'; }
+
+test $errno -ne 0 || $silence echo "Successful testing".
+
+exit $errno

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

Summary of changes:
 ChangeLog           |   14 +++++++
 ifconfig/options.c  |    4 ++
 tests/Makefile.am   |    8 +++-
 tests/ftp-parser.sh |  107 +++++++++++++++++++++++++++++++++++++++++++++++++++
 tests/ifconfig.sh   |   29 ++++++++++++-
 tests/libls.sh      |   97 ++++++++++++++++++++++++++++++++++++++++++++++
 6 files changed, 255 insertions(+), 4 deletions(-)
 create mode 100755 tests/ftp-parser.sh
 create mode 100755 tests/libls.sh


hooks/post-receive
-- 
GNU Inetutils 


From MAILER-DAEMON Sun Aug 03 09:29:52 2014
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1XDvrE-00064m-1J
	for mharc-commit-inetutils@gnu.org; Sun, 03 Aug 2014 09:29:52 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:43950)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gnu@gisladisker.se>) id 1XDvrB-000646-Oa
	for commit-inetutils@gnu.org; Sun, 03 Aug 2014 09:29:50 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gnu@gisladisker.se>) id 1XDvrA-0007aw-BE
	for commit-inetutils@gnu.org; Sun, 03 Aug 2014 09:29:49 -0400
Received: from vcs.savannah.gnu.org ([140.186.70.72]:53377)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gnu@gisladisker.se>) id 1XDvrA-0007as-7s
	for commit-inetutils@gnu.org; Sun, 03 Aug 2014 09:29:48 -0400
Received: from meand by vcs.savannah.gnu.org with local (Exim 4.72)
	(envelope-from <gnu@gisladisker.se>) id 1XDvr9-0004bt-0e
	for commit-inetutils@gnu.org; Sun, 03 Aug 2014 13:29:47 +0000
Date: Sun, 03 Aug 2014 13:29:47 +0000
Message-Id: <E1XDvr9-0004bt-0e@vcs.savannah.gnu.org>
To: commit-inetutils@gnu.org
Subject: [SCM] GNU Inetutils  branch, master,
	updated. inetutils-1_9_2-35-ga212896
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: d7139b7ea8ee6a9c9751aaab6d23c328f590a974
X-Git-Newrev: a2128965cb3130e3a68e9469466ae98487fcdbba
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, 03 Aug 2014 13:29:50 -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  a2128965cb3130e3a68e9469466ae98487fcdbba (commit)
      from  d7139b7ea8ee6a9c9751aaab6d23c328f590a974 (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=a2128965cb3130e3a68e9469466ae98487fcdbba


commit a2128965cb3130e3a68e9469466ae98487fcdbba
Author: Mats Erik Andersson <gnu@gisladisker.se>
Date:   Sun Aug 3 14:16:14 2014 +0200

    Support libshishi with Sun Studio.
    
    Detect libshishi in a manner that allows Sun Studio
    to fully recognize its presence, and build with it.

diff --git a/ChangeLog b/ChangeLog
index b625209..b75ed48 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2014-08-03  Mats Erik Andersson  <gnu@gisladisker.se>
+
+	Support libshishi with Sun Studio.
+
+	* configure.ac <shishi>: Call AC_SEARCH_LIBS, not AC_CHECK_LIB,
+	when looking for libshishi.  This allows the C-compiler from
+	Sun Studio 12.1 to correctly detect and build shishi support.
+
 2014-08-02  Mats Erik Andersson  <gnu@gisladisker.se>
 
 	More tests for better code coverage.
diff --git a/configure.ac b/configure.ac
index e1e4b08..a878f5d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -384,7 +384,7 @@ if test "$enable_encryption" = yes \
       save_CPPFLAGS=$CPPFLAGS
       CPPFLAGS="$CPPFLAGS $INCAUTH"
       AC_CHECK_HEADER(shishi.h,
-	AC_CHECK_LIB(shishi, shishi_check_version,
+	AC_SEARCH_LIBS([shishi_check_version], [shishi],
 	  AC_DEFINE([SHISHI]),
 	  [INCAUTH= LIBAUTH= KERBEROS_VERSION=]),
 	[INCAUTH= LIBAUTH= KERBEROS_VERSION=])
diff --git a/ping/ping6.c b/ping/ping6.c
index 383e679..a592b15 100644
--- a/ping/ping6.c
+++ b/ping/ping6.c
@@ -754,7 +754,7 @@ print_ip_data (struct icmp6_hdr *icmp6)
     }
 
   printf ("\n");
-};
+}
 
 static struct icmp_diag
 {

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

Summary of changes:
 ChangeLog    |    8 ++++++++
 configure.ac |    2 +-
 ping/ping6.c |    2 +-
 3 files changed, 10 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
GNU Inetutils 


From MAILER-DAEMON Sun Aug 10 20:20:21 2014
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1XGdLZ-0005Bw-38
	for mharc-commit-inetutils@gnu.org; Sun, 10 Aug 2014 20:20:21 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:56379)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gnu@gisladisker.se>) id 1XGdLW-0005BQ-Nh
	for commit-inetutils@gnu.org; Sun, 10 Aug 2014 20:20:19 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gnu@gisladisker.se>) id 1XGdLU-0006UN-MK
	for commit-inetutils@gnu.org; Sun, 10 Aug 2014 20:20:18 -0400
Received: from vcs.savannah.gnu.org ([140.186.70.72]:55866)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gnu@gisladisker.se>) id 1XGdLU-0006UJ-Ij
	for commit-inetutils@gnu.org; Sun, 10 Aug 2014 20:20:16 -0400
Received: from meand by vcs.savannah.gnu.org with local (Exim 4.72)
	(envelope-from <gnu@gisladisker.se>) id 1XGdLT-0001G1-P0
	for commit-inetutils@gnu.org; Mon, 11 Aug 2014 00:20:16 +0000
Date: Mon, 11 Aug 2014 00:20:15 +0000
Message-Id: <E1XGdLT-0001G1-P0@vcs.savannah.gnu.org>
To: commit-inetutils@gnu.org
Subject: [SCM] GNU Inetutils  branch, master,
	updated. inetutils-1_9_2-36-g9652277
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: a2128965cb3130e3a68e9469466ae98487fcdbba
X-Git-Newrev: 9652277837d7f3cf66ef33dbea1f069109e2ac6d
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: Mon, 11 Aug 2014 00:20: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  9652277837d7f3cf66ef33dbea1f069109e2ac6d (commit)
      from  a2128965cb3130e3a68e9469466ae98487fcdbba (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=9652277837d7f3cf66ef33dbea1f069109e2ac6d


commit 9652277837d7f3cf66ef33dbea1f069109e2ac6d
Author: Mats Erik Andersson <gnu@gisladisker.se>
Date:   Mon Aug 11 02:16:31 2014 +0200

    libls.sh: Better failure diagnostic.
    
    The build daemon at NixOS reports a failure
    where better reporting on our side would help.

diff --git a/ChangeLog b/ChangeLog
index b75ed48..4b5eb0d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2014-08-11  Mats Erik Andersson  <gnu@gisladisker.se>
+
+	* tests/libls.sh: Improve failure diagnostic when testing
+	the switches `-a' and `-A'.  The build daemon at NixOS had
+	an issue during this subcase.
+
 2014-08-03  Mats Erik Andersson  <gnu@gisladisker.se>
 
 	Support libshishi with Sun Studio.
diff --git a/tests/libls.sh b/tests/libls.sh
index a8ed8eb..29a4f41 100755
--- a/tests/libls.sh
+++ b/tests/libls.sh
@@ -66,10 +66,25 @@ REPLY_n=`$LS -n`
 REPLY_Ccts=`$LS -Ccts ..`
 REPLY_Cuts=`$LS -Cuts ..`
 
+# All the following failure causes are checked and possibly
+# brought to attention, independently of the other instances.
+#
 errno=0
 
 test $REPLY_a1 -eq `expr $REPLY_A1 + 2` ||
-  { errno=1; echo >&2 'Failed to suppress "." and "..".'; }
+  { errno=1; echo >&2 'Failed to tell switch -a apart from -A.'
+    # Attempt a diagnosis.
+    diff=`{ $LS -a1 && $LS -A1; } | sort | uniq -u`
+    if test -z "$diff"; then
+      echo >&2 'Flags -a and -A produce identical lists.'
+    else
+      cat >&2 <<-EOT
+	--- File list difference with '-a' and with '-A'. ---
+	`echo "$diff" | $SED -e 's,^,    ,'`
+	--- End of list ---
+	EOT
+    fi
+  }
 
 test x"$REPLY_C" != x"$REPLY_Cf" ||
   { errno=1; echo >&2 'Failed to disable sorting with "-f".'; }

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

Summary of changes:
 ChangeLog      |    6 ++++++
 tests/libls.sh |   17 ++++++++++++++++-
 2 files changed, 22 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
GNU Inetutils 


From MAILER-DAEMON Tue Aug 19 16:46:58 2014
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1XJqJ0-0005bw-1u
	for mharc-commit-inetutils@gnu.org; Tue, 19 Aug 2014 16:46:58 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:41093)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gnu@gisladisker.se>) id 1XJqIw-0005bo-TW
	for commit-inetutils@gnu.org; Tue, 19 Aug 2014 16:46:56 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gnu@gisladisker.se>) id 1XJqIv-0006E8-SV
	for commit-inetutils@gnu.org; Tue, 19 Aug 2014 16:46:54 -0400
Received: from vcs.savannah.gnu.org ([140.186.70.72]:57000)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gnu@gisladisker.se>) id 1XJqIv-0006Dq-PW
	for commit-inetutils@gnu.org; Tue, 19 Aug 2014 16:46:53 -0400
Received: from meand by vcs.savannah.gnu.org with local (Exim 4.72)
	(envelope-from <gnu@gisladisker.se>) id 1XJqIu-0008WL-9K
	for commit-inetutils@gnu.org; Tue, 19 Aug 2014 20:46:52 +0000
Date: Tue, 19 Aug 2014 20:46:52 +0000
Message-Id: <E1XJqIu-0008WL-9K@vcs.savannah.gnu.org>
To: commit-inetutils@gnu.org
Subject: [SCM] GNU Inetutils  branch, master,
	updated. inetutils-1_9_2-37-g4a46c58
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: 9652277837d7f3cf66ef33dbea1f069109e2ac6d
X-Git-Newrev: 4a46c58ba2f722e5142e5d72d69018eb52254a6a
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: Tue, 19 Aug 2014 20:46:56 -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  4a46c58ba2f722e5142e5d72d69018eb52254a6a (commit)
      from  9652277837d7f3cf66ef33dbea1f069109e2ac6d (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=4a46c58ba2f722e5142e5d72d69018eb52254a6a


commit 4a46c58ba2f722e5142e5d72d69018eb52254a6a
Author: Mats Erik Andersson <gnu@gisladisker.se>
Date:   Wed Aug 13 23:40:43 2014 +0200

    tests/libls.sh: Update testing method.
    
    Avoid a line enumeration using `sed', which seemingly
    caused a false negative in the build daemon of NixOS.

diff --git a/ChangeLog b/ChangeLog
index 4b5eb0d..c4dd37b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2014-08-13  Mats Erik Andersson  <gnu@gisladisker.se>
+
+	* tests/libls.sh <VERBOSE>: Execute `set -x'.
+	(REPLY_a1, REPLY_A1, diff): Changed.  Update the check
+	based on these, thus avoiding `sed -n '$='' which could
+	not be trusted on NixOS' build daemon.
+
 2014-08-11  Mats Erik Andersson  <gnu@gisladisker.se>
 
 	* tests/libls.sh: Improve failure diagnostic when testing
diff --git a/tests/libls.sh b/tests/libls.sh
index 29a4f41..f69a559 100755
--- a/tests/libls.sh
+++ b/tests/libls.sh
@@ -42,11 +42,15 @@ if test -z "${VERBOSE+set}"; then
     bucket='>/dev/null'
 fi
 
+if test -n "${VERBOSE:+set}"; then
+    set -x
+fi
+
 # Several runs with different switches are compared by
 # a simple count of printed lines.
 #
-REPLY_a1=`$LS -a1 | $SED -n '$='`
-REPLY_A1=`$LS -A1 | $SED -n '$='`
+REPLY_a1=`$LS -a1`
+REPLY_A1=`$LS -A1`
 
 REPLY_C=`$LS -C`
 REPLY_Cf=`$LS -Cf`
@@ -71,10 +75,12 @@ REPLY_Cuts=`$LS -Cuts ..`
 #
 errno=0
 
-test $REPLY_a1 -eq `expr $REPLY_A1 + 2` ||
+diff=`{ echo "$REPLY_a1"; echo "$REPLY_A1"; } | sort | uniq -u`
+
+test `echo "$diff" | wc -l` -eq 2 &&
+test `echo "$diff" | grep -c -v -e '^\.\{1,2\}$'` -eq 0 ||
   { errno=1; echo >&2 'Failed to tell switch -a apart from -A.'
     # Attempt a diagnosis.
-    diff=`{ $LS -a1 && $LS -A1; } | sort | uniq -u`
     if test -z "$diff"; then
       echo >&2 'Flags -a and -A produce identical lists.'
     else

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

Summary of changes:
 ChangeLog      |    7 +++++++
 tests/libls.sh |   14 ++++++++++----
 2 files changed, 17 insertions(+), 4 deletions(-)


hooks/post-receive
-- 
GNU Inetutils 


From MAILER-DAEMON Fri Aug 29 19:05:17 2014
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1XNVEL-0008DZ-9M
	for mharc-commit-inetutils@gnu.org; Fri, 29 Aug 2014 19:05:17 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:40262)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gnu@gisladisker.se>) id 1XNVEI-0008CA-Am
	for commit-inetutils@gnu.org; Fri, 29 Aug 2014 19:05:15 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gnu@gisladisker.se>) id 1XNVEH-0001K9-72
	for commit-inetutils@gnu.org; Fri, 29 Aug 2014 19:05:14 -0400
Received: from vcs.savannah.gnu.org ([140.186.70.72]:49214)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gnu@gisladisker.se>) id 1XNVEH-0001K5-44
	for commit-inetutils@gnu.org; Fri, 29 Aug 2014 19:05:13 -0400
Received: from meand by vcs.savannah.gnu.org with local (Exim 4.72)
	(envelope-from <gnu@gisladisker.se>) id 1XNVEF-00010V-W7
	for commit-inetutils@gnu.org; Fri, 29 Aug 2014 23:05:12 +0000
Date: Fri, 29 Aug 2014 23:05:12 +0000
Message-Id: <E1XNVEF-00010V-W7@vcs.savannah.gnu.org>
To: commit-inetutils@gnu.org
Subject: [SCM] GNU Inetutils  branch, master,
	updated. inetutils-1_9_2-38-gc10c9f9
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: 4a46c58ba2f722e5142e5d72d69018eb52254a6a
X-Git-Newrev: c10c9f97862ce98439f1e52b2922235d5b997e3a
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, 29 Aug 2014 23:05:15 -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  c10c9f97862ce98439f1e52b2922235d5b997e3a (commit)
      from  4a46c58ba2f722e5142e5d72d69018eb52254a6a (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=c10c9f97862ce98439f1e52b2922235d5b997e3a


commit c10c9f97862ce98439f1e52b2922235d5b997e3a
Author: Mats Erik Andersson <gnu@gisladisker.se>
Date:   Fri Aug 29 23:57:48 2014 +0200

    tests/libls.sh: Avoid a false negative outcome.
    
    Take precaution during code coverage runs.

diff --git a/ChangeLog b/ChangeLog
index c4dd37b..e0dd174 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-08-29  Mats Erik Andersson  <gnu@gisladisker.se>
+
+	* tests/libls.sh: Add a dummy execution of $LS in order
+	to avoid a false negative caused by code coverage runs.
+
 2014-08-13  Mats Erik Andersson  <gnu@gisladisker.se>
 
 	* tests/libls.sh <VERBOSE>: Execute `set -x'.
diff --git a/tests/libls.sh b/tests/libls.sh
index f69a559..cbb8408 100755
--- a/tests/libls.sh
+++ b/tests/libls.sh
@@ -46,6 +46,13 @@ if test -n "${VERBOSE:+set}"; then
     set -x
 fi
 
+# IMPORTANT: Execute an initial call to $LS, just to get going.
+# In case this is a coverage run, as NixOS does, this very first
+# call will create `ls.gcda', whose creation would interfere with
+# the counting after `$LS -a1' and `$LS -A1'.
+#
+$LS -alTt >/dev/null 2>&1
+
 # Several runs with different switches are compared by
 # a simple count of printed lines.
 #

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

Summary of changes:
 ChangeLog      |    5 +++++
 tests/libls.sh |    7 +++++++
 2 files changed, 12 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
GNU Inetutils 


