From MAILER-DAEMON Mon Jan 02 17:45:50 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Rhqda-0001fX-7h
	for mharc-bug-inetutils@gnu.org; Mon, 02 Jan 2012 17:45:50 -0500
Received: from eggs.gnu.org ([140.186.70.92]:44282)
	by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <ams@gnu.org>)
	id 1RhqdX-0001eC-6K
	for bug-inetutils@gnu.org; Mon, 02 Jan 2012 17:45:47 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <ams@gnu.org>) id 1RhqdW-0002B7-1z
	for bug-inetutils@gnu.org; Mon, 02 Jan 2012 17:45:47 -0500
Received: from fencepost.gnu.org ([140.186.70.10]:41335)
	by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ams@gnu.org>)
	id 1RhqdV-0002B2-T5
	for bug-inetutils@gnu.org; Mon, 02 Jan 2012 17:45:46 -0500
Received: from ams by fencepost.gnu.org with local (Exim 4.71)
	(envelope-from <ams@gnu.org>)
	id 1RhqdV-0003h0-GH; Mon, 02 Jan 2012 17:45:45 -0500
Date: Mon, 02 Jan 2012 17:45:45 -0500
Message-Id: <E1RhqdV-0003h0-GH@fencepost.gnu.org>
From: ams@gnu.org (Alfred M. Szmidt)
To: Juergen Daubert <juergen.daubert@gmx.net>, bug-inetutils@gnu.org
In-reply-to: <20120102142116.GA1158@jue.netz> (message from Juergen Daubert on
	Mon, 2 Jan 2012 15:21:16 +0100)
References: <20120102142116.GA1158@jue.netz>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 140.186.70.10
Subject: Re: [bug-inetutils] [Re:  inetutils 1.9 released!]
X-BeenThere: bug-inetutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: ams@gnu.org
List-Id: Bug reports for the GNU Internet utilities <bug-inetutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-inetutils>
List-Post: <mailto:bug-inetutils@gnu.org>
List-Help: <mailto:bug-inetutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 02 Jan 2012 22:45:48 -0000

I suspect that gnu.org is sluggish at this time.

   Date: Mon, 2 Jan 2012 09:48:10 +0100
   From: Juergen Daubert <juergen.daubert@gmx.net>
   To: bug-inetutils@gnu.org
   Subject: Re: [bug-inetutils] inetutils 1.9 released!
   User-Agent: Mutt/1.5.21 (2010-09-15)

   On Sat, Dec 31, 2011 at 10:53:10AM -0500, Alfred M. Szmidt wrote:
   > As promised, damned be I if no release this year. :-)

   Thanks for the new release, however looks like I've found a bug 
   in the buildsystem. It additionally builds and, more important, 
   installs git-merge-changelog from lib/ into $bindir/usr.

   $:> grep bin_PROGRAMS lib/Makefile.am
   bin_PROGRAMS = git-merge-changelog

Hmph, that is a bug in gnulib.  I'll act on it.  Thank you for the
report!


From MAILER-DAEMON Mon Jan 02 19:10:57 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Rhrxx-00045W-Ct
	for mharc-bug-inetutils@gnu.org; Mon, 02 Jan 2012 19:10:57 -0500
Received: from eggs.gnu.org ([140.186.70.92]:50312)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rcp-fix@mail.com>) id 1RhcIu-0000zI-Pp
	for bug-inetutils@gnu.org; Mon, 02 Jan 2012 02:27:34 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <rcp-fix@mail.com>) id 1RhcIt-0003e3-H7
	for bug-inetutils@gnu.org; Mon, 02 Jan 2012 02:27:32 -0500
Received: from mailout-us.gmx.com ([74.208.5.67]:41897)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <rcp-fix@mail.com>) id 1RhcIt-0003dm-Bu
	for bug-inetutils@gnu.org; Mon, 02 Jan 2012 02:27:31 -0500
Received: (qmail 24607 invoked by uid 0); 2 Jan 2012 07:27:29 -0000
Received: from 174.58.220.219 by rms-us012.v300.gmx.net with HTTP
Content-Type: multipart/mixed; boundary="========GMX284481325489248260779"
Date: Mon, 02 Jan 2012 02:27:27 -0500
From: rcp-fix@mail.com
Message-ID: <20120102072728.284480@gmx.com>
MIME-Version: 1.0
To: bug-inetutils@gnu.org
X-Authenticated: #131444069
X-Flags: 0001
X-Mailer: GMX.com Web Mailer
x-registered: 0
X-GMX-UID: Nzlzb0QO3zOl2ATOvnMhNCp+IGRvbwDb
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 74.208.5.67
X-Mailman-Approved-At: Mon, 02 Jan 2012 19:10:55 -0500
Subject: [bug-inetutils] fix for rcp (inetutils 1.9)
X-BeenThere: bug-inetutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Bug reports for the GNU Internet utilities <bug-inetutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-inetutils>
List-Post: <mailto:bug-inetutils@gnu.org>
List-Help: <mailto:bug-inetutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 02 Jan 2012 07:27:34 -0000

--========GMX284481325489248260779
Content-Type: multipart/alternative;
 boundary="========GMXBoundary284481325489248260962"

--========GMXBoundary284481325489248260962
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit

when copying large files (around a gig), rcp will choke.

 herre is the fix and a function for printing status when running as a sink.

 license is public domain. no attribution.

--========GMXBoundary284481325489248260962
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable

<span style=3D'font-family:Verdana'><span style=3D'font-size:12px'><p style=
=3D"margin:0px; padding:0px;" >=20
	when copying large files (around a gig), rcp will &nbsp;choke.<br />=20
	<br />=20
	herre is the fix and a function for printing status when running as a sink=
.<br />=20
	<br />=20
	license is public domain. no attribution.</p>=20
</span></span>

--========GMXBoundary284481325489248260962--

--========GMX284481325489248260779
Content-Type: text/x-patch; charset="utf-8"; name="inetutils.patch"
Content-Transfer-Encoding: 8bit
Content-Disposition: attachment; filename="inetutils.patch"
Content-Description: Attachment: inetutils.patch

diff -wBrNU3 inetutils-1.9/src/rcp.c inetutils-1.9-1/src/rcp.c
--- inetutils-1.9/src/rcp.c	2011-12-31 15:02:32.000000000 +0000
+++ inetutils-1.9-1/src/rcp.c	2012-01-02 07:08:08.120789750 +0000
@@ -708,6 +708,141 @@
   response ();
 }
 
+	int
+precision(value)
+	double value;
+{
+	if(1 > value)
+		return 4;
+	if(10 > value)
+		return 3;
+	if(100 > value)
+		return 2;
+	return 1;
+}
+void printstatus(double current,double total);
+	void
+printstatus(current,total)
+	double current,total;
+{
+	static char output[60];
+	static double lastupdate = 0,lastcurrent = 0,startupdate = 0
+		,_avgrate = 0;
+	struct timeval _now;
+	double now,rate,avgrate;
+	unsigned eta,sizeorder,rateorder;
+	char* outputcc[2];
+	gettimeofday(&_now,NULL);
+	now = _now.tv_sec + (((double) _now.tv_usec) / 1e6);
+	if( ! current )
+	{
+		startupdate = now;
+		lastupdate = now;
+		lastcurrent = 0;
+		return;
+	}
+	if(( ! (total == current) ) && (1 > (now - lastupdate)))
+		return;
+	if(( ! lastcurrent ) && ( ! (total == current) ))
+		printf("\n");
+	rate = (current - lastcurrent) / (now - lastupdate);
+	if(total == current)
+	{
+		if( ! lastcurrent )
+			return;
+		avgrate = total / (now - startupdate);
+		eta = now - startupdate;
+	}
+	else
+	{
+		if( ! _avgrate )
+			_avgrate = rate;
+		else
+			_avgrate = (0.1 * rate) + (0.9 * _avgrate);
+		eta = (total - current) / _avgrate;
+		lastupdate = now;
+		lastcurrent = current;
+		avgrate = _avgrate;
+	}
+	rateorder = 0;
+	for(;;)
+	{
+#define max(A,B) (((A) < (B)) ? (B) : (A))
+		if(1000 > max(rate,avgrate))
+#undef max
+			break;
+		rate /= 1024;
+		avgrate /= 1024;
+		++rateorder;
+	}
+	sizeorder = 0;
+	for(;;)
+	{
+		if(1000 > total)
+			break;
+		current /= 1024;
+		total /= 1024;
+		++sizeorder;
+	}
+	outputcc[0] = output;
+	outputcc[1]
+		= &outputcc[0][
+		sprintf(outputcc[0],"%4.*f/",precision(current),current)
+		];
+	if(4 == precision(current))
+	{
+		--outputcc[1];
+		memmove(outputcc[0],&outputcc[0][1],outputcc[1] - outputcc[0]);
+	}
+	outputcc[0] = outputcc[1];
+	outputcc[1]
+		= &outputcc[0][
+		sprintf(
+				outputcc[0]
+				,"%4.*f %cb @ "
+				,precision(total),total
+				," KMGTP"[sizeorder]
+				)
+		];
+	if(4 == precision(total))
+	{
+		--outputcc[1];
+		memmove(outputcc[0],&outputcc[0][1],outputcc[1] - outputcc[0]);
+	}
+	outputcc[0] = outputcc[1];
+	outputcc[1]
+		= &outputcc[0][
+		sprintf(
+				outputcc[0]
+				,"%4.*f ["
+				,precision(rate),rate," KMGTP"[rateorder]
+				)
+		];
+	if(4 == precision(rate))
+	{
+		--outputcc[1];
+		memmove(outputcc[0],&outputcc[0][1],outputcc[1] - outputcc[0]);
+	}
+	outputcc[0] = outputcc[1];
+	outputcc[1]
+		= &outputcc[0][
+		sprintf(
+				outputcc[0]
+				,"%4.*f] %cb/s (%02u:%02u:%02u)"
+				,precision(avgrate),avgrate," KMGTP"[rateorder]
+				,eta / (60 * 60),(eta / 60) % 60,eta % 60
+				)
+		];
+	if(4 == precision(avgrate))
+	{
+		--outputcc[1];
+		memmove(outputcc[0],&outputcc[0][1],outputcc[1] - outputcc[0]);
+	}
+	setbuf(stdout,NULL);
+	printf("\033[2K\033[0G  %s",output);
+	setlinebuf(stdout);
+}
+
 void
 sink (int argc, char *argv[])
 {
@@ -717,9 +852,9 @@
   enum
   { YES, NO, DISPLAYED } wrerr;
   BUF *bp;
-  off_t i, j;
+	off_t i, j, size;
   int amt, count, exists, first, mask, mode, ofd, omode;
-  int setimes, size, targisdir, wrerrno;
+	int setimes, targisdir, wrerrno;
   char ch, *cp, *np, *targ, *vect[1], buf[BUFSIZ];
   const char *why;
 
@@ -727,6 +862,7 @@
 #define mtime	tv[1]
 #define SCREWUP(str)	{ why = str; goto screwup; }
 
+	setbuf(stdout,NULL);
   setimes = targisdir = 0;
   mask = umask (0);
   if (!preserve_option)
@@ -902,6 +1038,8 @@
 	}
       cp = bp->buf;
       wrerr = NO;
+		printf("%s",np);
+		printstatus(i,size);
       for (count = i = 0; i < size; i += BUFSIZ)
 	{
 	  amt = BUFSIZ;
@@ -935,7 +1073,10 @@
 	      count = 0;
 	      cp = bp->buf;
 	    }
+			printstatus(i,size);
 	}
+		printstatus(size,size);
+		printf("\n");
       if (count != 0 && wrerr == NO
 	  && (j = write (ofd, bp->buf, count)) != count)
 	{

--========GMX284481325489248260779--


From MAILER-DAEMON Mon Jan 02 19:10:57 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Rhrxx-000460-GS
	for mharc-bug-inetutils@gnu.org; Mon, 02 Jan 2012 19:10:57 -0500
Received: from eggs.gnu.org ([140.186.70.92]:48075)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <juergen.daubert@gmx.net>) id 1RhdZ0-00070v-N6
	for bug-inetutils@gnu.org; Mon, 02 Jan 2012 03:48:15 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <juergen.daubert@gmx.net>) id 1RhdYz-0003sL-Mc
	for bug-inetutils@gnu.org; Mon, 02 Jan 2012 03:48:14 -0500
Received: from mailout-de.gmx.net ([213.165.64.22]:44122)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <juergen.daubert@gmx.net>) id 1RhdYz-0003sF-C6
	for bug-inetutils@gnu.org; Mon, 02 Jan 2012 03:48:13 -0500
Received: (qmail invoked by alias); 02 Jan 2012 08:48:10 -0000
Received: from HSI-KBW-109-193-090-059.hsi7.kabel-badenwuerttemberg.de (EHLO
	jue.netz) [109.193.90.59]
	by mail.gmx.net (mp072) with SMTP; 02 Jan 2012 09:48:10 +0100
X-Authenticated: #16260334
X-Provags-ID: V01U2FsdGVkX1/k5xQMMS/k53SbW+Fo5DW1mCxI0+aEZGQNQ/46Ql
	tWeAzOZVr4gizN
Received: by jue.netz (masqmail 0.3.3, from userid 500) id 1RhdYw-2fH-00
	for <bug-inetutils@gnu.org>; Mon, 02 Jan 2012 09:48:10 +0100
Date: Mon, 2 Jan 2012 09:48:10 +0100
From: Juergen Daubert <juergen.daubert@gmx.net>
To: bug-inetutils@gnu.org
Message-ID: <20120102084810.GA26109@jue.netz>
Mail-Followup-To: bug-inetutils@gnu.org
References: <E1Rh1F8-0000wB-5g@fencepost.gnu.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <E1Rh1F8-0000wB-5g@fencepost.gnu.org>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-Y-GMX-Trusted: 0
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 213.165.64.22
X-Mailman-Approved-At: Mon, 02 Jan 2012 19:10:55 -0500
Subject: Re: [bug-inetutils] inetutils 1.9 released!
X-BeenThere: bug-inetutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Bug reports for the GNU Internet utilities <bug-inetutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-inetutils>
List-Post: <mailto:bug-inetutils@gnu.org>
List-Help: <mailto:bug-inetutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 02 Jan 2012 08:48:15 -0000

On Sat, Dec 31, 2011 at 10:53:10AM -0500, Alfred M. Szmidt wrote:
> As promised, damned be I if no release this year. :-)

Thanks for the new release, however looks like I've found a bug 
in the buildsystem. It additionally builds and, more important, 
installs git-merge-changelog from lib/ into $bindir/usr.

$:> grep bin_PROGRAMS lib/Makefile.am
bin_PROGRAMS = git-merge-changelog


best regards
Juergen



From MAILER-DAEMON Mon Jan 02 20:19:34 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Rht2M-0002cw-7s
	for mharc-bug-inetutils@gnu.org; Mon, 02 Jan 2012 20:19:34 -0500
Received: from eggs.gnu.org ([140.186.70.92]:58006)
	by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <ams@gnu.org>)
	id 1Rht2J-0002bA-L7
	for bug-inetutils@gnu.org; Mon, 02 Jan 2012 20:19:32 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <ams@gnu.org>) id 1Rht2I-0003Eh-NB
	for bug-inetutils@gnu.org; Mon, 02 Jan 2012 20:19:31 -0500
Received: from fencepost.gnu.org ([140.186.70.10]:43140)
	by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ams@gnu.org>)
	id 1Rht2I-0003Dv-Lb
	for bug-inetutils@gnu.org; Mon, 02 Jan 2012 20:19:30 -0500
Received: from ams by fencepost.gnu.org with local (Exim 4.71)
	(envelope-from <ams@gnu.org>)
	id 1Rht2I-0007sq-8a; Mon, 02 Jan 2012 20:19:30 -0500
Date: Mon, 02 Jan 2012 20:19:30 -0500
Message-Id: <E1Rht2I-0007sq-8a@fencepost.gnu.org>
From: ams@gnu.org (Alfred M. Szmidt)
To: rcp-fix@mail.com
In-reply-to: <20120102072728.284480@gmx.com> (rcp-fix@mail.com)
References: <20120102072728.284480@gmx.com>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 140.186.70.10
Cc: bug-inetutils@gnu.org
Subject: Re: [bug-inetutils] fix for rcp (inetutils 1.9)
X-BeenThere: bug-inetutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: ams@gnu.org
List-Id: Bug reports for the GNU Internet utilities <bug-inetutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-inetutils>
List-Post: <mailto:bug-inetutils@gnu.org>
List-Help: <mailto:bug-inetutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 03 Jan 2012 01:19:32 -0000

    license is public domain. no attribution.

We will need a disclaimer, or copyright assignment for this change if
we are going to include it.  When it comes to copyright, there is no
"license" called `public domain'; public domain means that there is an
absense of a license.  Would you be willing to sign a disclaimer?

As far as the patch as such it is not standard C compliant, and needs
work.


From MAILER-DAEMON Mon Jan 02 20:25:30 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Rht86-0003du-20
	for mharc-bug-inetutils@gnu.org; Mon, 02 Jan 2012 20:25:30 -0500
Received: from eggs.gnu.org ([140.186.70.92]:41588)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mats.andersson@gisladisker.se>) id 1Rht83-0003cF-Kk
	for bug-inetutils@gnu.org; Mon, 02 Jan 2012 20:25:28 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <mats.andersson@gisladisker.se>) id 1Rht82-00042c-N3
	for bug-inetutils@gnu.org; Mon, 02 Jan 2012 20:25:27 -0500
Received: from ch-smtp04.sth.basefarm.net ([80.76.153.5]:36400)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mats.andersson@gisladisker.se>) id 1Rht82-00042W-Bj
	for bug-inetutils@gnu.org; Mon, 02 Jan 2012 20:25:26 -0500
Received: from c83-253-249-30.bredband.comhem.se ([83.253.249.30]:34701
	helo=aun)
	by ch-smtp04.sth.basefarm.net with esmtps (TLSv1:AES256-SHA:256)
	(Exim 4.76) (envelope-from <mats.andersson@gisladisker.se>)
	id 1Rht7o-0004dh-Cv
	for bug-inetutils@gnu.org; Tue, 03 Jan 2012 02:25:13 +0100
Received: from meand by aun with local (Exim 4.69)
	(envelope-from <mats.andersson@gisladisker.se>) id 1Rht7f-00028i-1x
	for bug-inetutils@gnu.org; Tue, 03 Jan 2012 02:25:03 +0100
Date: Tue, 3 Jan 2012 02:25:03 +0100
To: bug-inetutils@gnu.org
Message-ID: <20120103012502.GA8191@mea.homelinux.org>
References: <20120102072728.284480@gmx.com>
	<E1Rht2I-0007sq-8a@fencepost.gnu.org>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <E1Rht2I-0007sq-8a@fencepost.gnu.org>
User-Agent: Mutt/1.5.18 (2008-05-17)
From: Mats Erik Andersson <mats.andersson@gisladisker.se>
X-SA-Exim-Connect-IP: <locally generated>
X-SA-Exim-Rcpt-To: bug-inetutils@gnu.org
X-SA-Exim-Mail-From: mats.andersson@gisladisker.se
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-SA-Exim-Version: 4.2.1 (built Wed, 25 Jun 2008 17:14:11 +0000)
X-SA-Exim-Scanned: Yes (on aun)
X-Originating-IP: 83.253.249.30
X-Scan-Result: No virus found in message 1Rht7o-0004dh-Cv.
X-Scan-Signature: ch-smtp04.sth.basefarm.net 1Rht7o-0004dh-Cv
	d28259f706ce795a82c644bc33d62fb9
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 80.76.153.5
Subject: Re: [bug-inetutils] fix for rcp (inetutils 1.9)
X-BeenThere: bug-inetutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Bug reports for the GNU Internet utilities <bug-inetutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-inetutils>
List-Post: <mailto:bug-inetutils@gnu.org>
List-Help: <mailto:bug-inetutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 03 Jan 2012 01:25:28 -0000

måndag den  2 januari 2012 klockan 20:19 skrev Alfred M. Szmidt detta:
>     license is public domain. no attribution.
> 
> We will need a disclaimer, or copyright assignment for this change if
> we are going to include it.  When it comes to copyright, there is no
> "license" called `public domain'; public domain means that there is an
> absense of a license.  Would you be willing to sign a disclaimer?
> 
> As far as the patch as such it is not standard C compliant, and needs
> work.

I find that anonymous patches should be a priori declined. As you say,
the present patch will need heavy scrutiny.

Regards,
  Mats


From MAILER-DAEMON Mon Jan 02 20:46:24 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1RhtSK-0000dL-G3
	for mharc-bug-inetutils@gnu.org; Mon, 02 Jan 2012 20:46:24 -0500
Received: from eggs.gnu.org ([140.186.70.92]:48095)
	by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <ams@gnu.org>)
	id 1RhtSI-0000d4-CK
	for bug-inetutils@gnu.org; Mon, 02 Jan 2012 20:46:23 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <ams@gnu.org>) id 1RhtSH-0006Fd-Ep
	for bug-inetutils@gnu.org; Mon, 02 Jan 2012 20:46:22 -0500
Received: from fencepost.gnu.org ([140.186.70.10]:43371)
	by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ams@gnu.org>)
	id 1RhtSH-0006FZ-DE
	for bug-inetutils@gnu.org; Mon, 02 Jan 2012 20:46:21 -0500
Received: from ams by fencepost.gnu.org with local (Exim 4.71)
	(envelope-from <ams@gnu.org>)
	id 1RhtSH-0003yA-6u; Mon, 02 Jan 2012 20:46:21 -0500
Date: Mon, 02 Jan 2012 20:46:21 -0500
Message-Id: <E1RhtSH-0003yA-6u@fencepost.gnu.org>
From: ams@gnu.org (Alfred M. Szmidt)
To: Mats Erik Andersson <gnu@gisladisker.se>
In-reply-to: <E1RhsI5-0000yS-1m@vcs.savannah.gnu.org> (message from Mats Erik
	Andersson on Tue, 03 Jan 2012 00:31:45 +0000)
References: <E1RhsI5-0000yS-1m@vcs.savannah.gnu.org>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 140.186.70.10
Cc: bug-inetutils@gnu.org
Subject: Re: [bug-inetutils] [SCM] GNU Inetutils  branch, master,
	updated. inetutils-1_9-3-g01dd21c
X-BeenThere: bug-inetutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: ams@gnu.org
List-Id: Bug reports for the GNU Internet utilities <bug-inetutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-inetutils>
List-Post: <mailto:bug-inetutils@gnu.org>
List-Help: <mailto:bug-inetutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 03 Jan 2012 01:46:23 -0000

I need to roll a new release, since gnulib installs
git-merge-changelog in bindir.  Mats, do you think these two changes
will break something?  Otherwise, I'll roll one tomorrow.

   commit 01dd21c666c3fdaf16b1c9d01ac9ae6c03f0297b
   Author: Mats Erik Andersson <gnu@gisladisker.se>
   Date:   Tue Jan 3 00:45:44 2012 +0100

       ftpd: Internal address family independence.

   commit ed4ff5db997369d08959501dbad771ba08dbe795
   Author: Mats Erik Andersson <gnu@gisladisker.se>
   Date:   Mon Jan 2 22:29:14 2012 +0100

       ftpd: First step for address independence.


From MAILER-DAEMON Mon Jan 02 21:12:37 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Rhtrh-0000jO-6o
	for mharc-bug-inetutils@gnu.org; Mon, 02 Jan 2012 21:12:37 -0500
Received: from eggs.gnu.org ([140.186.70.92]:34764)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mats.andersson@gisladisker.se>) id 1Rhtre-0000ig-Qn
	for bug-inetutils@gnu.org; Mon, 02 Jan 2012 21:12:35 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <mats.andersson@gisladisker.se>) id 1Rhtrd-0000yr-8g
	for bug-inetutils@gnu.org; Mon, 02 Jan 2012 21:12:34 -0500
Received: from ch-smtp05.sth.basefarm.net ([80.76.153.6]:39957)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mats.andersson@gisladisker.se>) id 1Rhtrc-0000yn-Sp
	for bug-inetutils@gnu.org; Mon, 02 Jan 2012 21:12:33 -0500
Received: from c83-253-249-30.bredband.comhem.se ([83.253.249.30]:59208
	helo=aun)
	by ch-smtp05.sth.basefarm.net with esmtps (TLSv1:AES256-SHA:256)
	(Exim 4.76) (envelope-from <mats.andersson@gisladisker.se>)
	id 1RhtrX-0001Ou-J1
	for bug-inetutils@gnu.org; Tue, 03 Jan 2012 03:12:29 +0100
Received: from meand by aun with local (Exim 4.69)
	(envelope-from <mats.andersson@gisladisker.se>) id 1RhtrU-0002Fe-86
	for bug-inetutils@gnu.org; Tue, 03 Jan 2012 03:12:25 +0100
Date: Tue, 3 Jan 2012 03:12:24 +0100
To: bug-inetutils@gnu.org
Message-ID: <20120103021224.GA8535@mea.homelinux.org>
References: <E1RhsI5-0000yS-1m@vcs.savannah.gnu.org>
	<E1RhtSH-0003yA-6u@fencepost.gnu.org>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <E1RhtSH-0003yA-6u@fencepost.gnu.org>
User-Agent: Mutt/1.5.18 (2008-05-17)
From: Mats Erik Andersson <mats.andersson@gisladisker.se>
X-SA-Exim-Connect-IP: <locally generated>
X-SA-Exim-Rcpt-To: bug-inetutils@gnu.org
X-SA-Exim-Mail-From: mats.andersson@gisladisker.se
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-SA-Exim-Version: 4.2.1 (built Wed, 25 Jun 2008 17:14:11 +0000)
X-SA-Exim-Scanned: Yes (on aun)
X-Originating-IP: 83.253.249.30
X-Scan-Result: No virus found in message 1RhtrX-0001Ou-J1.
X-Scan-Signature: ch-smtp05.sth.basefarm.net 1RhtrX-0001Ou-J1
	d904daa70bce602ab2a2636c3ded4999
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 80.76.153.6
Subject: Re: [bug-inetutils] [SCM] GNU Inetutils  branch, master,
	updated.	inetutils-1_9-3-g01dd21c
X-BeenThere: bug-inetutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Bug reports for the GNU Internet utilities <bug-inetutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-inetutils>
List-Post: <mailto:bug-inetutils@gnu.org>
List-Help: <mailto:bug-inetutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 03 Jan 2012 02:12:35 -0000

måndag den  2 januari 2012 klockan 20:46 skrev Alfred M. Szmidt detta:
> I need to roll a new release, since gnulib installs
> git-merge-changelog in bindir.  Mats, do you think these two changes
> will break something?  Otherwise, I'll roll one tomorrow.
> 
>    commit 01dd21c666c3fdaf16b1c9d01ac9ae6c03f0297b
>    Author: Mats Erik Andersson <gnu@gisladisker.se>
>    Date:   Tue Jan 3 00:45:44 2012 +0100
> 
>        ftpd: Internal address family independence.
> 
>    commit ed4ff5db997369d08959501dbad771ba08dbe795
>    Author: Mats Erik Andersson <gnu@gisladisker.se>
>    Date:   Mon Jan 2 22:29:14 2012 +0100
> 
>        ftpd: First step for address independence.

They have been built against GNU/Linux, OpenBSD, NetBSD,
and GNU/OpenSolaris. All four pass the test "test/ftp-localhost.sh".
And at both stages!

My next patch set would have activated "EPSV/IPv4", "EPSV af", and "EPRT".
They are all part of code tested successfully for IPv4 and IPv6
on OpenBSD. Therefore I do not think the pushed patches are prone
to break anything, they just add some limited IPv6 support without
reaching the full RFC standard, and without implementing the supplementary
IPv4 commands that were introduced in the same RFC texts.

Should you prefer to remove my two patches before rolling the release,
I will not raise any objections. Better safe than sorry, I can simply
recalculate and push them later.

Best regards,
  Mats


From MAILER-DAEMON Mon Jan 02 22:22:07 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Rhuwx-0006YM-55
	for mharc-bug-inetutils@gnu.org; Mon, 02 Jan 2012 22:22:07 -0500
Received: from eggs.gnu.org ([140.186.70.92]:54244)
	by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <ams@gnu.org>)
	id 1Rhuwu-0006X0-3o
	for bug-inetutils@gnu.org; Mon, 02 Jan 2012 22:22:04 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <ams@gnu.org>) id 1Rhuws-0008Dn-RT
	for bug-inetutils@gnu.org; Mon, 02 Jan 2012 22:22:04 -0500
Received: from fencepost.gnu.org ([140.186.70.10]:44353)
	by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ams@gnu.org>)
	id 1Rhuws-0008Dj-NU
	for bug-inetutils@gnu.org; Mon, 02 Jan 2012 22:22:02 -0500
Received: from ams by fencepost.gnu.org with local (Exim 4.71)
	(envelope-from <ams@gnu.org>)
	id 1Rhuws-0000B4-Cd; Mon, 02 Jan 2012 22:22:02 -0500
Date: Mon, 02 Jan 2012 22:22:02 -0500
Message-Id: <E1Rhuws-0000B4-Cd@fencepost.gnu.org>
From: ams@gnu.org (Alfred M. Szmidt)
To: ams@gnu.org
In-reply-to: <E1RhqdV-0003h0-GH@fencepost.gnu.org> (ams@gnu.org)
References: <20120102142116.GA1158@jue.netz>
	<E1RhqdV-0003h0-GH@fencepost.gnu.org>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 140.186.70.10
Cc: bug-inetutils@gnu.org
Subject: Re: [bug-inetutils] [Re:  inetutils 1.9 released!]
X-BeenThere: bug-inetutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: ams@gnu.org
List-Id: Bug reports for the GNU Internet utilities <bug-inetutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-inetutils>
List-Post: <mailto:bug-inetutils@gnu.org>
List-Help: <mailto:bug-inetutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 03 Jan 2012 03:22:05 -0000

Hi Juergen, thought I'd give you an ack.  I've fixed the problem in
inetutils (and will move git-merge-changelog to a different package
since it doesn't really belong in gnulib), and will be rolling out a
new release shortly (tomorrowish)


From MAILER-DAEMON Wed Jan 04 13:02:30 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1RiVAU-0000lg-0W
	for mharc-bug-inetutils@gnu.org; Wed, 04 Jan 2012 13:02:30 -0500
Received: from eggs.gnu.org ([140.186.70.92]:56447)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mats.andersson@gisladisker.se>) id 1RiVAR-0000kl-6X
	for bug-inetutils@gnu.org; Wed, 04 Jan 2012 13:02:28 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <mats.andersson@gisladisker.se>) id 1RiVAM-0005hP-1F
	for bug-inetutils@gnu.org; Wed, 04 Jan 2012 13:02:27 -0500
Received: from ch-smtp05.sth.basefarm.net ([80.76.153.6]:48080)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mats.andersson@gisladisker.se>) id 1RiVAL-0005hL-NB
	for bug-inetutils@gnu.org; Wed, 04 Jan 2012 13:02:21 -0500
Received: from c83-253-249-30.bredband.comhem.se ([83.253.249.30]:52544
	helo=aun)
	by ch-smtp05.sth.basefarm.net with esmtps (TLSv1:AES256-SHA:256)
	(Exim 4.76) (envelope-from <mats.andersson@gisladisker.se>)
	id 1RiV9b-00009p-H3
	for bug-inetutils@gnu.org; Wed, 04 Jan 2012 19:01:36 +0100
Received: from meand by aun with local (Exim 4.69)
	(envelope-from <mats.andersson@gisladisker.se>) id 1RiV9R-00084e-45
	for bug-inetutils@gnu.org; Wed, 04 Jan 2012 19:01:26 +0100
Date: Wed, 4 Jan 2012 19:01:25 +0100
To: bug-inetutils@gnu.org
Message-ID: <20120104180125.GA30943@mea.homelinux.org>
References: <E1RhsI5-0000yS-1m@vcs.savannah.gnu.org>
	<E1RhtSH-0003yA-6u@fencepost.gnu.org>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <E1RhtSH-0003yA-6u@fencepost.gnu.org>
User-Agent: Mutt/1.5.18 (2008-05-17)
From: Mats Erik Andersson <mats.andersson@gisladisker.se>
X-SA-Exim-Connect-IP: <locally generated>
X-SA-Exim-Rcpt-To: bug-inetutils@gnu.org
X-SA-Exim-Mail-From: mats.andersson@gisladisker.se
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-SA-Exim-Version: 4.2.1 (built Wed, 25 Jun 2008 17:14:11 +0000)
X-SA-Exim-Scanned: Yes (on aun)
X-Originating-IP: 83.253.249.30
X-Scan-Result: No virus found in message 1RiV9b-00009p-H3.
X-Scan-Signature: ch-smtp05.sth.basefarm.net 1RiV9b-00009p-H3
	9aa93e6d0ffb231957d8d3be329439a7
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 80.76.153.6
Subject: Re: [bug-inetutils] [SCM] GNU Inetutils  branch, master,
	updated.	inetutils-1_9-3-g01dd21c
X-BeenThere: bug-inetutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Bug reports for the GNU Internet utilities <bug-inetutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-inetutils>
List-Post: <mailto:bug-inetutils@gnu.org>
List-Help: <mailto:bug-inetutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 04 Jan 2012 18:02:28 -0000

måndag den  2 januari 2012 klockan 20:46 skrev Alfred M. Szmidt detta:
> I need to roll a new release, since gnulib installs
> git-merge-changelog in bindir.  Mats, do you think these two changes
> will break something?  Otherwise, I'll roll one tomorrow.
> 
>    commit 01dd21c666c3fdaf16b1c9d01ac9ae6c03f0297b
>        ftpd: Internal address family independence.
> 
>    commit ed4ff5db997369d08959501dbad771ba08dbe795
>        ftpd: First step for address independence.

I have pushed a remedy. In doing so I have expanded "tests/ftp-localhost.sh"
to investigate data connection in addition to the control connection, and
also to do the same for active data transfer, not only passive transfer.
This improved test happened also to uncover a dislike of OpenSolaris with
AI_ADDRCONFIG when acting on AF_INET only.

The new "tests/ftp-localhost.sh" runs successfully for all of GNU/Linux,
GNU/kFreeBSD, OpenBSD, NetBSD, and GNU/OpenSolaris, so most probably
it will be safe to base a release on the present status.

Regards,
  Mats


From MAILER-DAEMON Thu Jan 05 11:21:21 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Riq49-00018B-NW
	for mharc-bug-inetutils@gnu.org; Thu, 05 Jan 2012 11:21:21 -0500
Received: from eggs.gnu.org ([140.186.70.92]:36682)
	by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <ams@gnu.org>)
	id 1Riq46-00013b-53
	for bug-inetutils@gnu.org; Thu, 05 Jan 2012 11:21:20 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <ams@gnu.org>) id 1Riq3z-0001JM-Ku
	for bug-inetutils@gnu.org; Thu, 05 Jan 2012 11:21:18 -0500
Received: from fencepost.gnu.org ([140.186.70.10]:51208)
	by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ams@gnu.org>)
	id 1Riq3z-0001J1-40
	for bug-inetutils@gnu.org; Thu, 05 Jan 2012 11:21:11 -0500
Received: from ams by fencepost.gnu.org with local (Exim 4.71)
	(envelope-from <ams@gnu.org>) id 1Riq3y-0001GO-Ua
	for bug-inetutils@gnu.org; Thu, 05 Jan 2012 11:21:10 -0500
Date: Thu, 05 Jan 2012 11:21:10 -0500
Message-Id: <E1Riq3y-0001GO-Ua@fencepost.gnu.org>
From: ams@gnu.org (Alfred M. Szmidt)
To: bug-inetutils@gnu.org
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 140.186.70.10
Subject: [bug-inetutils] inetutils 1.9.1 bug fix release...
X-BeenThere: bug-inetutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: ams@gnu.org
List-Id: Bug reports for the GNU Internet utilities <bug-inetutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-inetutils>
List-Post: <mailto:bug-inetutils@gnu.org>
List-Help: <mailto:bug-inetutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 05 Jan 2012 16:21:20 -0000

I've been sick, and now swamped at work.  Simon, Sergey, could you
make a bug fix release of iu? The important fix is this one:

	* bootstrap.conf (gnulib_modules): Removed git-merge-changelog.


From MAILER-DAEMON Fri Jan 06 09:19:58 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1RjAeE-00078S-6h
	for mharc-bug-inetutils@gnu.org; Fri, 06 Jan 2012 09:19:58 -0500
Received: from eggs.gnu.org ([140.186.70.92]:36610)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <simon@josefsson.org>) id 1RjAe8-00076h-Ep
	for bug-inetutils@gnu.org; Fri, 06 Jan 2012 09:19:56 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <simon@josefsson.org>) id 1RjAe4-0005my-Cw
	for bug-inetutils@gnu.org; Fri, 06 Jan 2012 09:19:52 -0500
Received: from static-213-115-179-173.sme.bredbandsbolaget.se
	([213.115.179.173]:51873 helo=yxa-v.extundo.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <simon@josefsson.org>)
	id 1RjAe4-0005l7-0r; Fri, 06 Jan 2012 09:19:48 -0500
Received: from latte.josefsson.org
	(static-213-115-179-130.sme.bredbandsbolaget.se [213.115.179.130])
	(authenticated bits=0)
	by yxa-v.extundo.com (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id
	q06EJV0Y013599
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT);
	Fri, 6 Jan 2012 15:19:33 +0100
X-Hashcash: 1:22:120106:bug-inetutils@gnu.org::bVeYPJsRfU0NGRsB:01B8P
X-Hashcash: 1:22:120106:info-gnu@gnu.org::XLrHbjtuEEhDa5XY:Jex0
From: Simon Josefsson <simon@josefsson.org>
To: bug-inetutils@gnu.org, info-gnu@gnu.org
OpenPGP: id=B565716F; url=http://josefsson.org/key.txt
Date: Fri, 06 Jan 2012 15:19:30 +0100
Message-ID: <87lipk6hhp.fsf@latte.josefsson.org>
User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.92 (gnu/linux)
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
	micalg=pgp-sha1; protocol="application/pgp-signature"
X-Virus-Scanned: clamav-milter 0.97.3 at yxa-v
X-Virus-Status: Clean
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1)
X-Received-From: 213.115.179.173
Subject: [bug-inetutils] inetutils-1.9.1 released
X-BeenThere: bug-inetutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Bug reports for the GNU Internet utilities <bug-inetutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-inetutils>
List-Post: <mailto:bug-inetutils@gnu.org>
List-Help: <mailto:bug-inetutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 06 Jan 2012 14:19:56 -0000

--=-=-=
Content-Type: text/plain

The GNU inetutils team is proud to present version 1.9.1 of the GNU
network utilities suite.  The GNU network utilities suite provides the
following tools: ftp(d), hostname, ifconfig, inetd, logger, ping, rcp,
rexec(d), rlogin(d), rsh(d), syslogd, talk(d), telnet(d), tftp(d),
traceroute, uucpd, and whois.

The following things are new in this release:

* Don't install git-merge-changelog.

Please send bug reports to bug-inetutils@gnu.org.

Here are the compressed sources:
  ftp://ftp.gnu.org/gnu/inetutils/inetutils-1.9.1.tar.gz

Here are the GPG detached signatures[*]:
  ftp://ftp.gnu.org/gnu/inetutils/inetutils-1.9.1.tar.gz.sig

To reduce load on the main server, use a mirror listed at:
  http://www.gnu.org/order/ftp.html

[*] You can use either of the above signature files to verify that
the corresponding file (without the .sig suffix) is intact.  First,
be sure to download both the .sig file and the corresponding tarball.
Then, run a command like this:

  gpg --verify inetutils-1.9.1.tar.gz.sig

If that command fails because you don't have the required public key,
then run this command to import it:

  gpg --keyserver keys.gnupg.net --recv-keys B565716F

and rerun the `gpg --verify' command.

Many thanks to all the people who contributed to this release.  Happy
hacking!

--=-=-=
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iO4EAQECADgFAk8HAvIxFIAAAAAAFQATcGthLWFkZHJlc3NAZ251cGcub3Jnc2lt
b25Aam9zZWZzc29uLm9yZwAKCRDtoh6UtWVxbxq1BP9h8m3MTcvrajaYm60hQGEk
SykIBi+h9eNXY6GjcMvMmZsLgpD2nXHqnsccB+CKzX7wZCB5GclfYcKfMGw7rAEh
v+idH5DaRN+5wmrmdcXCoMOoSpwpPlLWL4cpK8XUZ3fUXuA/zhrnZDy1ggW8+Nbp
3wwsb0Nviq3zdw+YtjLO3tpqyMFsvVOcFVscnnsbBoCLCmgjL1d7EzAD8inxntKx
=0Bnl
-----END PGP SIGNATURE-----
--=-=-=--


From MAILER-DAEMON Fri Jan 06 09:22:16 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1RjAgS-0007dM-3a
	for mharc-bug-inetutils@gnu.org; Fri, 06 Jan 2012 09:22:16 -0500
Received: from eggs.gnu.org ([140.186.70.92]:37011)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <simon@josefsson.org>) id 1RjAgL-0007ck-Lk
	for bug-inetutils@gnu.org; Fri, 06 Jan 2012 09:22:15 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <simon@josefsson.org>) id 1RjAgF-00068C-RR
	for bug-inetutils@gnu.org; Fri, 06 Jan 2012 09:22:09 -0500
Received: from static-213-115-179-173.sme.bredbandsbolaget.se
	([213.115.179.173]:51902 helo=yxa-v.extundo.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <simon@josefsson.org>)
	id 1RjAgF-00067y-El; Fri, 06 Jan 2012 09:22:03 -0500
Received: from latte.josefsson.org
	(static-213-115-179-130.sme.bredbandsbolaget.se [213.115.179.130])
	(authenticated bits=0)
	by yxa-v.extundo.com (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id
	q06ELtFh013828
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT);
	Fri, 6 Jan 2012 15:21:56 +0100
X-Hashcash: 1:22:120106:bug-inetutils@gnu.org::GcLCbFbYsjA7iykv:0g6a
X-Hashcash: 1:22:120106:info-gnu@gnu.org::I9Al7qyOhECLjQrA:6Y/r
From: Simon Josefsson <simon@josefsson.org>
To: bug-inetutils@gnu.org, info-gnu@gnu.org
OpenPGP: id=B565716F; url=http://josefsson.org/key.txt
Date: Fri, 06 Jan 2012 15:21:55 +0100
Message-ID: <87k4546hdo.fsf@latte.josefsson.org>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
	micalg=pgp-sha1; protocol="application/pgp-signature"
X-Virus-Scanned: clamav-milter 0.97.3 at yxa-v
X-Virus-Status: Clean
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1)
X-Received-From: 213.115.179.173
Subject: [bug-inetutils] inetutils-1.9.1 released
X-BeenThere: bug-inetutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Bug reports for the GNU Internet utilities <bug-inetutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-inetutils>
List-Post: <mailto:bug-inetutils@gnu.org>
List-Help: <mailto:bug-inetutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 06 Jan 2012 14:22:15 -0000

--=-=-=
Content-Type: text/plain

The GNU inetutils team is proud to present version 1.9.1 of the GNU
network utilities suite.  The GNU network utilities suite provides the
following tools: ftp(d), hostname, ifconfig, inetd, logger, ping, rcp,
rexec(d), rlogin(d), rsh(d), syslogd, talk(d), telnet(d), tftp(d),
traceroute, uucpd, and whois.

The following things are new in this release:

* Don't install git-merge-changelog.

Please send bug reports to bug-inetutils@gnu.org.

Here are the compressed sources:
  ftp://ftp.gnu.org/gnu/inetutils/inetutils-1.9.1.tar.gz

Here are the GPG detached signatures[*]:
  ftp://ftp.gnu.org/gnu/inetutils/inetutils-1.9.1.tar.gz.sig

To reduce load on the main server, use a mirror listed at:
  http://www.gnu.org/order/ftp.html

[*] You can use either of the above signature files to verify that
the corresponding file (without the .sig suffix) is intact.  First,
be sure to download both the .sig file and the corresponding tarball.
Then, run a command like this:

  gpg --verify inetutils-1.9.1.tar.gz.sig

If that command fails because you don't have the required public key,
then run this command to import it:

  gpg --keyserver keys.gnupg.net --recv-keys B565716F

and rerun the `gpg --verify' command.

Many thanks to all the people who contributed to this release.  Happy
hacking!

--=-=-=
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iO4EAQECADgFAk8HA4MxFIAAAAAAFQATcGthLWFkZHJlc3NAZ251cGcub3Jnc2lt
b25Aam9zZWZzc29uLm9yZwAKCRDtoh6UtWVxb1ccBQCXE6zijUVwlLuQSvtlpwTZ
BMD2ICzkbx53RMv9zQQW9FpefPQuHCi77aIsMd69sz69v8tunfpskjQxd8+FoZb8
SFfT+HYt97jmY9qcpsYGHmARngb3Z5gwGRXjQyKjnmDhlh0Ro9KE2dbiVDhxNOMN
oDzIUhNKjEnqLOQiU3Yv7BKNQ2KgyYf8GpozGE2ANWHjh5SefuL4zToHMQv4gQDn
=g4mH
-----END PGP SIGNATURE-----
--=-=-=--


From MAILER-DAEMON Fri Jan 06 09:26:53 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1RjAkv-0000Lv-8C
	for mharc-bug-inetutils@gnu.org; Fri, 06 Jan 2012 09:26:53 -0500
Received: from eggs.gnu.org ([140.186.70.92]:53963)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <simon@josefsson.org>) id 1RjAks-0000KU-Uk
	for bug-inetutils@gnu.org; Fri, 06 Jan 2012 09:26:51 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <simon@josefsson.org>) id 1RjAkn-0006wh-AG
	for bug-inetutils@gnu.org; Fri, 06 Jan 2012 09:26:50 -0500
Received: from static-213-115-179-173.sme.bredbandsbolaget.se
	([213.115.179.173]:51945 helo=yxa-v.extundo.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <simon@josefsson.org>)
	id 1RjAkl-0006wN-Fd; Fri, 06 Jan 2012 09:26:43 -0500
Received: from latte.josefsson.org
	(static-213-115-179-130.sme.bredbandsbolaget.se [213.115.179.130])
	(authenticated bits=0)
	by yxa-v.extundo.com (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id
	q06EQXLp014059
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT);
	Fri, 6 Jan 2012 15:26:35 +0100
From: Simon Josefsson <simon@josefsson.org>
To: ams@gnu.org
References: <E1Riq3y-0001GO-Ua@fencepost.gnu.org>
OpenPGP: id=B565716F; url=http://josefsson.org/key.txt
X-Hashcash: 1:22:120106:ams@gnu.org::6tYoQc8ZYbJo57cu:9Qjn
X-Hashcash: 1:22:120106:bug-inetutils@gnu.org::Ox8uokZl/hgHDAy0:IRSA
Date: Fri, 06 Jan 2012 15:26:33 +0100
In-Reply-To: <E1Riq3y-0001GO-Ua@fencepost.gnu.org> (Alfred M. Szmidt's message
	of "Thu, 05 Jan 2012 11:21:10 -0500")
Message-ID: <87fwfs6h5y.fsf@latte.josefsson.org>
User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.92 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Virus-Scanned: clamav-milter 0.97.3 at yxa-v
X-Virus-Status: Clean
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1)
X-Received-From: 213.115.179.173
Cc: bug-inetutils@gnu.org
Subject: Re: [bug-inetutils] inetutils 1.9.1 bug fix release...
X-BeenThere: bug-inetutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Bug reports for the GNU Internet utilities <bug-inetutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-inetutils>
List-Post: <mailto:bug-inetutils@gnu.org>
List-Help: <mailto:bug-inetutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 06 Jan 2012 14:26:51 -0000

ams@gnu.org (Alfred M. Szmidt) writes:

> I've been sick, and now swamped at work.  Simon, Sergey, could you
> make a bug fix release of iu? The important fix is this one:
>
> 	* bootstrap.conf (gnulib_modules): Removed git-merge-changelog.

Done.  Generating code coverage failed for me though, with the error
below.  Are you or anyone else able to generate a coverage report?

/Simon

make[1]: Leaving directory `/home/jas/src/inetutils'
mkdir -p doc/coverage
lcov --directory . --output-file doc/coverage/inetutils.info \
		--capture
Capturing coverage data from .
Found gcov version: 4.4.5
Scanning . for .gcda files ...
Found 32 data files in .
Processing libinetutils/ttymsg.gcda
Processing libinetutils/daemon.gcda
Processing libinetutils/tftpsubs.gcda
Processing libinetutils/localhost.gcda
Processing libinetutils/argcv.gcda
Processing lib/progname.gcda
Processing lib/argp-xinl.gcda
Processing lib/xalloc-die.gcda
Processing lib/xgethostname.gcda
Processing lib/ioctl.gcda
geninfo: WARNING: no data found for /home/jas/src/inetutils/lib/sys/ioctl.h
Processing lib/umaxtostr.gcda
Processing lib/xmalloc.gcda
Processing lib/fcntl.gcda
geninfo: WARNING: no data found for /home/jas/src/inetutils/lib/fcntl.h
Processing lib/xgetdomainname.gcda
Processing lib/basename-lgpl.gcda
Processing lib/argp-help.gcda
Processing lib/getopt1.gcda
geninfo: WARNING: no data found for /home/jas/src/inetutils/lib/getopt.h
Processing lib/getopt.gcda
geninfo: WARNING: no data found for /home/jas/src/inetutils/lib/getopt.h
Processing lib/argp-fmtstream.gcda
Processing lib/version-etc.gcda
Processing lib/argp-parse.gcda
Processing lib/argp-fs-xinl.gcda
Processing lib/readutmp.gcda
Processing lib/argp-version-etc.gcda
Processing src/inetd.gcda
Processing src/tftpd.gcda
Processing src/syslogd.gcda
Processing src/logger.gcda
Processing src/hostname.gcda
Processing src/tftp.gcda
geninfo: ERROR: /home/jas/src/inetutils/src/tftp.gcno: reached unexpected end of file
make: *** [build-coverage] Fel 255
jas@latte:~/src/inetutils master$ ls -la src/tftp.gcno 
-rw-r--r-- 1 jas jas 37112  6 jan 15.24 src/tftp.gcno
jas@latte:~/src/inetutils master$ 


From MAILER-DAEMON Fri Jan 06 19:44:47 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1RjKOt-0001Ae-Qz
	for mharc-bug-inetutils@gnu.org; Fri, 06 Jan 2012 19:44:47 -0500
Received: from eggs.gnu.org ([140.186.70.92]:39884)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mats.andersson@gisladisker.se>) id 1RjKOr-0001AU-FQ
	for bug-inetutils@gnu.org; Fri, 06 Jan 2012 19:44:46 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <mats.andersson@gisladisker.se>) id 1RjKOq-0003oC-K9
	for bug-inetutils@gnu.org; Fri, 06 Jan 2012 19:44:45 -0500
Received: from ch-smtp05.sth.basefarm.net ([80.76.153.6]:48107)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mats.andersson@gisladisker.se>) id 1RjKOq-0003o8-A6
	for bug-inetutils@gnu.org; Fri, 06 Jan 2012 19:44:44 -0500
Received: from c83-253-249-30.bredband.comhem.se ([83.253.249.30]:41882
	helo=aun)
	by ch-smtp05.sth.basefarm.net with esmtps (TLSv1:AES256-SHA:256)
	(Exim 4.76) (envelope-from <mats.andersson@gisladisker.se>)
	id 1RjKOS-0004Kp-J8
	for bug-inetutils@gnu.org; Sat, 07 Jan 2012 01:44:22 +0100
Received: from meand by aun with local (Exim 4.69)
	(envelope-from <mats.andersson@gisladisker.se>) id 1RjKOP-0007S9-BD
	for bug-inetutils@gnu.org; Sat, 07 Jan 2012 01:44:18 +0100
Date: Sat, 7 Jan 2012 01:44:17 +0100
To: bug-inetutils@gnu.org
Message-ID: <20120107004417.GA28518@mea.homelinux.org>
MIME-Version: 1.0
Content-Disposition: inline
User-Agent: Mutt/1.5.18 (2008-05-17)
From: Mats Erik Andersson <mats.andersson@gisladisker.se>
X-SA-Exim-Connect-IP: <locally generated>
X-SA-Exim-Rcpt-To: bug-inetutils@gnu.org
X-SA-Exim-Mail-From: mats.andersson@gisladisker.se
Content-Type: text/plain; charset=us-ascii
X-SA-Exim-Version: 4.2.1 (built Wed, 25 Jun 2008 17:14:11 +0000)
X-SA-Exim-Scanned: Yes (on aun)
X-Originating-IP: 83.253.249.30
X-Scan-Result: No virus found in message 1RjKOS-0004Kp-J8.
X-Scan-Signature: ch-smtp05.sth.basefarm.net 1RjKOS-0004Kp-J8
	47462b4a2d41947bdb0e5201927a7046
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 80.76.153.6
Subject: [bug-inetutils] Macros __unix__ and unix.
X-BeenThere: bug-inetutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Bug reports for the GNU Internet utilities <bug-inetutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-inetutils>
List-Post: <mailto:bug-inetutils@gnu.org>
List-Help: <mailto:bug-inetutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 07 Jan 2012 00:44:46 -0000

Dear all,

a quick search

  $ git grep -l '#.*def.*\<unix\>'
  ftp/cmds.c
  ftpd/ftpcmd.y
  telnet/commands.c
  telnet/main.c
  telnet/telnet.c
  telnet/tn3270.c
  telnet/utilities.c

hides a portability problem we have at present:

  GNU/Linux, OpenSolaris define "unix" and "__unix__",

  OpenBSD defines only "__unix__".

In the above seven files, only "ftpd/ftpcmd.y" is accepting
"unix" as well as "__unix__", the other only checks on "unix".
Going to the contemporary OpenBSD source for "telnet", their
make file circumvents the problem by passing "-Dunix" to Gcc,
which we do not.

Question: Is a manual rewrite using

  #if defined unix || defined __unix__

a good solution, or should we let "configure.ac" trigger
the insertion of a macro "unix" based on "__unix__", should
the former be missing?

Best regards,
  Mats


From MAILER-DAEMON Sun Jan 08 04:42:01 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1RjpGL-00015g-BI
	for mharc-bug-inetutils@gnu.org; Sun, 08 Jan 2012 04:42:01 -0500
Received: from eggs.gnu.org ([140.186.70.92]:57380)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <simon@josefsson.org>) id 1RjpGH-00014D-Cx
	for bug-inetutils@gnu.org; Sun, 08 Jan 2012 04:41:58 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <simon@josefsson.org>) id 1RjpGG-0004Lq-AP
	for bug-inetutils@gnu.org; Sun, 08 Jan 2012 04:41:57 -0500
Received: from static-213-115-179-173.sme.bredbandsbolaget.se
	([213.115.179.173]:38930 helo=yxa-v.extundo.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <simon@josefsson.org>) id 1RjpGF-0004L4-UL
	for bug-inetutils@gnu.org; Sun, 08 Jan 2012 04:41:56 -0500
Received: from latte.josefsson.org
	(static-213-115-179-130.sme.bredbandsbolaget.se [213.115.179.130])
	(authenticated bits=0)
	by yxa-v.extundo.com (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id
	q089fW4M030652
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT);
	Sun, 8 Jan 2012 10:41:33 +0100
From: Simon Josefsson <simon@josefsson.org>
To: Mats Erik Andersson <mats.andersson@gisladisker.se>
References: <20120107004417.GA28518@mea.homelinux.org>
OpenPGP: id=B565716F; url=http://josefsson.org/key.txt
X-Hashcash: 1:22:120108:bug-inetutils@gnu.org::m4V857/WzjCSDN2b:BjXP
X-Hashcash: 1:22:120108:mats.andersson@gisladisker.se::psr9psLcHiCV+oGn:MCV4
Date: Sun, 08 Jan 2012 10:41:32 +0100
In-Reply-To: <20120107004417.GA28518@mea.homelinux.org> (Mats Erik Andersson's
	message of "Sat, 7 Jan 2012 01:44:17 +0100")
Message-ID: <87ty464jlf.fsf@latte.josefsson.org>
User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.92 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Virus-Scanned: clamav-milter 0.97.3 at yxa-v
X-Virus-Status: Clean
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1)
X-Received-From: 213.115.179.173
Cc: bug-inetutils@gnu.org
Subject: Re: [bug-inetutils] Macros __unix__ and unix.
X-BeenThere: bug-inetutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Bug reports for the GNU Internet utilities <bug-inetutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-inetutils>
List-Post: <mailto:bug-inetutils@gnu.org>
List-Help: <mailto:bug-inetutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 08 Jan 2012 09:41:59 -0000

Mats Erik Andersson <mats.andersson@gisladisker.se> writes:

> Dear all,
>
> a quick search
>
>   $ git grep -l '#.*def.*\<unix\>'
>   ftp/cmds.c
>   ftpd/ftpcmd.y
>   telnet/commands.c
>   telnet/main.c
>   telnet/telnet.c
>   telnet/tn3270.c
>   telnet/utilities.c
>
> hides a portability problem we have at present:
>
>   GNU/Linux, OpenSolaris define "unix" and "__unix__",
>
>   OpenBSD defines only "__unix__".
>
> In the above seven files, only "ftpd/ftpcmd.y" is accepting
> "unix" as well as "__unix__", the other only checks on "unix".
> Going to the contemporary OpenBSD source for "telnet", their
> make file circumvents the problem by passing "-Dunix" to Gcc,
> which we do not.
>
> Question: Is a manual rewrite using
>
>   #if defined unix || defined __unix__
>
> a good solution, or should we let "configure.ac" trigger
> the insertion of a macro "unix" based on "__unix__", should
> the former be missing?

I don't care strongly, but support doing either.

However, your question begs the bigger question: do we really need these
#ifdef's at all?  I looked at a few files, and most of the usage looked
like hacky workarounds.  It is some work to rewrite the code though...

/Simon


From MAILER-DAEMON Sun Jan 08 14:03:00 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Rjy1E-0002Es-43
	for mharc-bug-inetutils@gnu.org; Sun, 08 Jan 2012 14:03:00 -0500
Received: from eggs.gnu.org ([140.186.70.92]:44842)
	by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <ams@gnu.org>)
	id 1Rjy1B-0002EH-Ep
	for bug-inetutils@gnu.org; Sun, 08 Jan 2012 14:02:58 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <ams@gnu.org>) id 1Rjy19-0005hf-3Y
	for bug-inetutils@gnu.org; Sun, 08 Jan 2012 14:02:57 -0500
Received: from fencepost.gnu.org ([140.186.70.10]:60923)
	by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ams@gnu.org>)
	id 1Rjy18-0005gy-Uo
	for bug-inetutils@gnu.org; Sun, 08 Jan 2012 14:02:55 -0500
Received: from ams by fencepost.gnu.org with local (Exim 4.71)
	(envelope-from <ams@gnu.org>)
	id 1Rjy18-0000au-3K; Sun, 08 Jan 2012 14:02:54 -0500
Date: Sun, 08 Jan 2012 14:02:54 -0500
Message-Id: <E1Rjy18-0000au-3K@fencepost.gnu.org>
From: ams@gnu.org (Alfred M. Szmidt)
To: Mats Erik Andersson <gnu@gisladisker.se>
In-reply-to: <E1RjVJ0-00040F-Eo@vcs.savannah.gnu.org> (message from Mats Erik
	Andersson on Sat, 07 Jan 2012 12:23:26 +0000)
References: <E1RjVJ0-00040F-Eo@vcs.savannah.gnu.org>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 140.186.70.10
Cc: bug-inetutils@gnu.org
Subject: Re: [bug-inetutils] [SCM] GNU Inetutils  branch, master,
	updated. inetutils-1_9_1-2-ga78b655
X-BeenThere: bug-inetutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: ams@gnu.org
List-Id: Bug reports for the GNU Internet utilities <bug-inetutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-inetutils>
List-Post: <mailto:bug-inetutils@gnu.org>
List-Help: <mailto:bug-inetutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 08 Jan 2012 19:02:58 -0000

   +	(printoption, printsub): Code formatting of ternary operator.

FWIW, you don't need to mention "non-functional" changes in the
ChangeLog; i.e. code formating, adding/fixing comments, etc.


From MAILER-DAEMON Sun Jan 08 14:03:08 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Rjy1M-0002I7-OY
	for mharc-bug-inetutils@gnu.org; Sun, 08 Jan 2012 14:03:08 -0500
Received: from eggs.gnu.org ([140.186.70.92]:44942)
	by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <ams@gnu.org>)
	id 1Rjy1I-0002GV-Ko
	for bug-inetutils@gnu.org; Sun, 08 Jan 2012 14:03:05 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <ams@gnu.org>) id 1Rjy1H-0005m3-5z
	for bug-inetutils@gnu.org; Sun, 08 Jan 2012 14:03:04 -0500
Received: from fencepost.gnu.org ([140.186.70.10]:60935)
	by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ams@gnu.org>)
	id 1Rjy1H-0005lr-4F
	for bug-inetutils@gnu.org; Sun, 08 Jan 2012 14:03:03 -0500
Received: from ams by fencepost.gnu.org with local (Exim 4.71)
	(envelope-from <ams@gnu.org>)
	id 1Rjy1G-0000cy-Tx; Sun, 08 Jan 2012 14:03:02 -0500
Date: Sun, 08 Jan 2012 14:03:02 -0500
Message-Id: <E1Rjy1G-0000cy-Tx@fencepost.gnu.org>
From: ams@gnu.org (Alfred M. Szmidt)
To: Simon Josefsson <simon@josefsson.org>
In-reply-to: <87ty464jlf.fsf@latte.josefsson.org> (message from Simon
	Josefsson on Sun, 08 Jan 2012 10:41:32 +0100)
References: <20120107004417.GA28518@mea.homelinux.org>
	<87ty464jlf.fsf@latte.josefsson.org>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 140.186.70.10
Cc: bug-inetutils@gnu.org
Subject: Re: [bug-inetutils] Macros __unix__ and unix.
X-BeenThere: bug-inetutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: ams@gnu.org
List-Id: Bug reports for the GNU Internet utilities <bug-inetutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-inetutils>
List-Post: <mailto:bug-inetutils@gnu.org>
List-Help: <mailto:bug-inetutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 08 Jan 2012 19:03:06 -0000

   > a good solution, or should we let "configure.ac" trigger
   > the insertion of a macro "unix" based on "__unix__", should
   > the former be missing?

   I don't care strongly, but support doing either.

   However, your question begs the bigger question: do we really need these
   #ifdef's at all?  I looked at a few files, and most of the usage looked
   like hacky workarounds.  It is some work to rewrite the code though...

Yeah, telnet/telnetd contain a lot of cruft... If we can remove these
#ifdefs, or replace them by proper configure.ac checks, then this is
super.  

For ftpd/ftpcmd.y I would leave the __unix__/unix ifdefs, they are
mostly correct.  If those macros are defined, then it is a "UNIX"
environment (very much similar to what we do in ifconfig).

For telnetd/telnet we use those macros in a bit different way, and
they should be killed of.  I'd recommend running the unifdef on
telnet/telnetd where __unix__/unix are defined, and clean it up.

Ditto for the TN3270, CRAY, ultrix, and what not.

I can do that.


From MAILER-DAEMON Sun Jan 08 14:03:16 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Rjy1U-0002Jb-Rq
	for mharc-bug-inetutils@gnu.org; Sun, 08 Jan 2012 14:03:16 -0500
Received: from eggs.gnu.org ([140.186.70.92]:45025)
	by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <ams@gnu.org>)
	id 1Rjy1S-0002IS-5L
	for bug-inetutils@gnu.org; Sun, 08 Jan 2012 14:03:15 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <ams@gnu.org>) id 1Rjy1Q-0005ot-EP
	for bug-inetutils@gnu.org; Sun, 08 Jan 2012 14:03:14 -0500
Received: from fencepost.gnu.org ([140.186.70.10]:60942)
	by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ams@gnu.org>)
	id 1Rjy1Q-0005oo-Cv
	for bug-inetutils@gnu.org; Sun, 08 Jan 2012 14:03:12 -0500
Received: from ams by fencepost.gnu.org with local (Exim 4.71)
	(envelope-from <ams@gnu.org>)
	id 1Rjy1P-0000dX-W7; Sun, 08 Jan 2012 14:03:12 -0500
Date: Sun, 08 Jan 2012 14:03:11 -0500
Message-Id: <E1Rjy1P-0000dX-W7@fencepost.gnu.org>
From: ams@gnu.org (Alfred M. Szmidt)
To: ams@gnu.org
In-reply-to: <E1RhqdV-0003h0-GH@fencepost.gnu.org> (ams@gnu.org)
References: <20120102142116.GA1158@jue.netz>
	<E1RhqdV-0003h0-GH@fencepost.gnu.org>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 140.186.70.10
Cc: bug-inetutils@gnu.org
Subject: Re: [bug-inetutils] [Re:  inetutils 1.9 released!]
X-BeenThere: bug-inetutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: ams@gnu.org
List-Id: Bug reports for the GNU Internet utilities <bug-inetutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-inetutils>
List-Post: <mailto:bug-inetutils@gnu.org>
List-Help: <mailto:bug-inetutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 08 Jan 2012 19:03:15 -0000

Thanks for the report, we have fixed the error now.  Happy hacking!


From MAILER-DAEMON Sun Jan 08 14:03:17 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Rjy1V-0002KH-Ud
	for mharc-bug-inetutils@gnu.org; Sun, 08 Jan 2012 14:03:17 -0500
Received: from eggs.gnu.org ([140.186.70.92]:45042)
	by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <ams@gnu.org>)
	id 1Rjy1T-0002Ib-P0
	for bug-inetutils@gnu.org; Sun, 08 Jan 2012 14:03:16 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <ams@gnu.org>) id 1Rjy1S-0005pb-B5
	for bug-inetutils@gnu.org; Sun, 08 Jan 2012 14:03:15 -0500
Received: from fencepost.gnu.org ([140.186.70.10]:60945)
	by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ams@gnu.org>)
	id 1Rjy1S-0005pX-9d
	for bug-inetutils@gnu.org; Sun, 08 Jan 2012 14:03:14 -0500
Received: from ams by fencepost.gnu.org with local (Exim 4.71)
	(envelope-from <ams@gnu.org>)
	id 1Rjy1S-0000di-68; Sun, 08 Jan 2012 14:03:14 -0500
Date: Sun, 08 Jan 2012 14:03:14 -0500
Message-Id: <E1Rjy1S-0000di-68@fencepost.gnu.org>
From: ams@gnu.org (Alfred M. Szmidt)
To: Simon Josefsson <simon@josefsson.org>
In-reply-to: <87lipk6hhp.fsf@latte.josefsson.org> (message from Simon
	Josefsson on Fri, 06 Jan 2012 15:19:30 +0100)
References: <87lipk6hhp.fsf@latte.josefsson.org>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 140.186.70.10
Cc: bug-inetutils@gnu.org
Subject: Re: [bug-inetutils] inetutils-1.9.1 released
X-BeenThere: bug-inetutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: ams@gnu.org
List-Id: Bug reports for the GNU Internet utilities <bug-inetutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-inetutils>
List-Post: <mailto:bug-inetutils@gnu.org>
List-Help: <mailto:bug-inetutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 08 Jan 2012 19:03:16 -0000

Thank you Simon for the help!


From MAILER-DAEMON Sun Jan 08 21:21:15 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Rk4rL-0006mq-NN
	for mharc-bug-inetutils@gnu.org; Sun, 08 Jan 2012 21:21:15 -0500
Received: from eggs.gnu.org ([140.186.70.92]:42175)
	by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <ams@gnu.org>)
	id 1Rk4rJ-0006mX-2M
	for bug-inetutils@gnu.org; Sun, 08 Jan 2012 21:21:13 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <ams@gnu.org>) id 1Rk4rI-0006vj-3i
	for bug-inetutils@gnu.org; Sun, 08 Jan 2012 21:21:13 -0500
Received: from fencepost.gnu.org ([140.186.70.10]:37893)
	by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ams@gnu.org>)
	id 1Rk4rI-0006vf-2G
	for bug-inetutils@gnu.org; Sun, 08 Jan 2012 21:21:12 -0500
Received: from ams by fencepost.gnu.org with local (Exim 4.71)
	(envelope-from <ams@gnu.org>)
	id 1Rk4rH-0003DU-A2; Sun, 08 Jan 2012 21:21:11 -0500
Date: Sun, 08 Jan 2012 21:21:11 -0500
Message-Id: <E1Rk4rH-0003DU-A2@fencepost.gnu.org>
From: ams@gnu.org (Alfred M. Szmidt)
To: Simon Josefsson <simon@josefsson.org>
In-reply-to: <87fwfs6h5y.fsf@latte.josefsson.org> (message from Simon
	Josefsson on Fri, 06 Jan 2012 15:26:33 +0100)
References: <E1Riq3y-0001GO-Ua@fencepost.gnu.org>
	<87fwfs6h5y.fsf@latte.josefsson.org>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 140.186.70.10
Cc: bug-inetutils@gnu.org
Subject: Re: [bug-inetutils] inetutils 1.9.1 bug fix release...
X-BeenThere: bug-inetutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: ams@gnu.org
List-Id: Bug reports for the GNU Internet utilities <bug-inetutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-inetutils>
List-Post: <mailto:bug-inetutils@gnu.org>
List-Help: <mailto:bug-inetutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 09 Jan 2012 02:21:14 -0000

   > I've been sick, and now swamped at work.  Simon, Sergey, could
   > you make a bug fix release of iu? The important fix is this one:
   >
   > 	* bootstrap.conf (gnulib_modules): Removed git-merge-changelog.

   Done.  Generating code coverage failed for me though, with the
   error below.  Are you or anyone else able to generate a coverage
   report?

I've never had it working well, so I don't know.  The amount of tests
make it less than useful for me.


From MAILER-DAEMON Tue Jan 10 20:57:22 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1RknRK-00051i-R0
	for mharc-bug-inetutils@gnu.org; Tue, 10 Jan 2012 20:57:22 -0500
Received: from eggs.gnu.org ([140.186.70.92]:48868)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mats.andersson@gisladisker.se>) id 1RknRI-00050S-SE
	for bug-inetutils@gnu.org; Tue, 10 Jan 2012 20:57:21 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <mats.andersson@gisladisker.se>) id 1RknRH-0006qI-3i
	for bug-inetutils@gnu.org; Tue, 10 Jan 2012 20:57:20 -0500
Received: from ch-smtp05.sth.basefarm.net ([80.76.153.6]:33993)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mats.andersson@gisladisker.se>) id 1RknRG-0006q7-PZ
	for bug-inetutils@gnu.org; Tue, 10 Jan 2012 20:57:19 -0500
Received: from c83-253-249-30.bredband.comhem.se ([83.253.249.30]:40012
	helo=aun)
	by ch-smtp05.sth.basefarm.net with esmtps (TLSv1:AES256-SHA:256)
	(Exim 4.76) (envelope-from <mats.andersson@gisladisker.se>)
	id 1RknQh-0006BM-HB
	for bug-inetutils@gnu.org; Wed, 11 Jan 2012 02:56:44 +0100
Received: from meand by aun with local (Exim 4.69)
	(envelope-from <mats.andersson@gisladisker.se>) id 1RknQU-0004R5-87
	for bug-inetutils@gnu.org; Wed, 11 Jan 2012 02:56:31 +0100
Date: Wed, 11 Jan 2012 02:56:30 +0100
To: bug-inetutils@gnu.org
Message-ID: <20120111015630.GA16849@mea.homelinux.org>
MIME-Version: 1.0
Content-Disposition: inline
User-Agent: Mutt/1.5.18 (2008-05-17)
From: Mats Erik Andersson <mats.andersson@gisladisker.se>
X-SA-Exim-Connect-IP: <locally generated>
X-SA-Exim-Rcpt-To: bug-inetutils@gnu.org
X-SA-Exim-Mail-From: mats.andersson@gisladisker.se
Content-Type: text/plain; charset=us-ascii
X-SA-Exim-Version: 4.2.1 (built Wed, 25 Jun 2008 17:14:11 +0000)
X-SA-Exim-Scanned: Yes (on aun)
X-Originating-IP: 83.253.249.30
X-Scan-Result: No virus found in message 1RknQh-0006BM-HB.
X-Scan-Signature: ch-smtp05.sth.basefarm.net 1RknQh-0006BM-HB
	dcbfa7b5c51199a51f3a379a1e8c9c3d
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 80.76.153.6
Subject: [bug-inetutils] Standard ports using IPPORT_*.
X-BeenThere: bug-inetutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Bug reports for the GNU Internet utilities <bug-inetutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-inetutils>
List-Post: <mailto:bug-inetutils@gnu.org>
List-Help: <mailto:bug-inetutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 11 Jan 2012 01:57:21 -0000

Dear all,

I have just observe that depending on library vendor,
the file <netinet/in.h> might declare IPPORT_* as
"enum" as Glibc does, or as macro, as OpenSolaris does.
Presently, only IPPORT_RESERVED is in use by us, namely
in ftpd, libinetutils, rlogind, rshd, and traceroute.

It does make sense to use the values such as IPPORT_FTP,
IPPORT_CMDSERVER, IPPORT_LOGINSERVER, and IPPORT_SYSLOG
as fallback values when starting the corresponding services,
but code like

   #ifdef IPPORT_FTP
   # define DEFPORT IPPORT_FTP
   #else
   # define DEFPORT 21
   #endif

is useless since Glibc uses "enum { IPPORT_FTP = 21 }".
Could we develop a configuration test to determine
the presence of the relevant constants?

The individual constants are not always present: IPPORT_SYSLOG
is missing in Glibc, but is present in SunOS.

Regards,
  Mats


From MAILER-DAEMON Sun Jan 15 09:54:12 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1RmRTI-00023p-1H
	for mharc-bug-inetutils@gnu.org; Sun, 15 Jan 2012 09:54:12 -0500
Received: from eggs.gnu.org ([140.186.70.92]:55440)
	by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <ams@gnu.org>)
	id 1RmRTF-00023O-Dz
	for bug-inetutils@gnu.org; Sun, 15 Jan 2012 09:54:10 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <ams@gnu.org>) id 1RmRTE-0000A1-DQ
	for bug-inetutils@gnu.org; Sun, 15 Jan 2012 09:54:09 -0500
Received: from fencepost.gnu.org ([140.186.70.10]:49549)
	by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ams@gnu.org>)
	id 1RmRTE-00009w-Bt
	for bug-inetutils@gnu.org; Sun, 15 Jan 2012 09:54:08 -0500
Received: from ams by fencepost.gnu.org with local (Exim 4.71)
	(envelope-from <ams@gnu.org>)
	id 1RmRTD-0004oI-R2; Sun, 15 Jan 2012 09:54:07 -0500
Date: Sun, 15 Jan 2012 09:54:07 -0500
Message-Id: <E1RmRTD-0004oI-R2@fencepost.gnu.org>
From: ams@gnu.org (Alfred M. Szmidt)
To: Mats Erik Andersson <mats.andersson@gisladisker.se>
In-reply-to: <20120111015630.GA16849@mea.homelinux.org> (message from Mats
	Erik Andersson on Wed, 11 Jan 2012 02:56:30 +0100)
References: <20120111015630.GA16849@mea.homelinux.org>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 140.186.70.10
Cc: bug-inetutils@gnu.org
Subject: Re: [bug-inetutils] Standard ports using IPPORT_*.
X-BeenThere: bug-inetutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: ams@gnu.org
List-Id: Bug reports for the GNU Internet utilities <bug-inetutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-inetutils>
List-Post: <mailto:bug-inetutils@gnu.org>
List-Help: <mailto:bug-inetutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 15 Jan 2012 14:54:10 -0000

   I have just observe that depending on library vendor,
   the file <netinet/in.h> might declare IPPORT_* as
   "enum" as Glibc does, or as macro, as OpenSolaris does.
   Presently, only IPPORT_RESERVED is in use by us, namely
   in ftpd, libinetutils, rlogind, rshd, and traceroute.

   It does make sense to use the values such as IPPORT_FTP,
   IPPORT_CMDSERVER, IPPORT_LOGINSERVER, and IPPORT_SYSLOG
   as fallback values when starting the corresponding services,
   but code like

      #ifdef IPPORT_FTP
      # define DEFPORT IPPORT_FTP
      #else
      # define DEFPORT 21
      #endif

   is useless since Glibc uses "enum { IPPORT_FTP = 21 }".
   Could we develop a configuration test to determine
   the presence of the relevant constants?

   The individual constants are not always present: IPPORT_SYSLOG
   is missing in Glibc, but is present in SunOS.

Do we know any systems where IPPORT_* is not defined?  If those
systems are not common, we can simply use the value directly.

If we still want to support systems where IPPORT_* is not defined, we
should do a configuration check.


From MAILER-DAEMON Sun Jan 15 12:10:11 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1RmTat-0006r4-HA
	for mharc-bug-inetutils@gnu.org; Sun, 15 Jan 2012 12:10:11 -0500
Received: from eggs.gnu.org ([140.186.70.92]:44519)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mats.andersson@gisladisker.se>) id 1RmTaq-0006qL-KN
	for bug-inetutils@gnu.org; Sun, 15 Jan 2012 12:10:09 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <mats.andersson@gisladisker.se>) id 1RmTao-0003a4-7S
	for bug-inetutils@gnu.org; Sun, 15 Jan 2012 12:10:08 -0500
Received: from ch-smtp05.sth.basefarm.net ([80.76.153.6]:55938)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mats.andersson@gisladisker.se>) id 1RmTan-0003Yi-TO
	for bug-inetutils@gnu.org; Sun, 15 Jan 2012 12:10:06 -0500
Received: from c83-253-249-30.bredband.comhem.se ([83.253.249.30]:51684
	helo=aun)
	by ch-smtp05.sth.basefarm.net with esmtps (TLSv1:AES256-SHA:256)
	(Exim 4.76) (envelope-from <mats.andersson@gisladisker.se>)
	id 1RmTZz-00029g-GC
	for bug-inetutils@gnu.org; Sun, 15 Jan 2012 18:09:16 +0100
Received: from meand by aun with local (Exim 4.69)
	(envelope-from <mats.andersson@gisladisker.se>) id 1RmTZn-0003H2-Eo
	for bug-inetutils@gnu.org; Sun, 15 Jan 2012 18:09:04 +0100
Date: Sun, 15 Jan 2012 18:09:03 +0100
To: bug-inetutils@gnu.org
Message-ID: <20120115170903.GA12462@mea.homelinux.org>
References: <20120111015630.GA16849@mea.homelinux.org>
	<E1RmRTD-0004oI-R2@fencepost.gnu.org>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <E1RmRTD-0004oI-R2@fencepost.gnu.org>
User-Agent: Mutt/1.5.18 (2008-05-17)
From: Mats Erik Andersson <mats.andersson@gisladisker.se>
X-SA-Exim-Connect-IP: <locally generated>
X-SA-Exim-Rcpt-To: bug-inetutils@gnu.org
X-SA-Exim-Mail-From: mats.andersson@gisladisker.se
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-SA-Exim-Version: 4.2.1 (built Wed, 25 Jun 2008 17:14:11 +0000)
X-SA-Exim-Scanned: Yes (on aun)
X-Originating-IP: 83.253.249.30
X-Scan-Result: No virus found in message 1RmTZz-00029g-GC.
X-Scan-Signature: ch-smtp05.sth.basefarm.net 1RmTZz-00029g-GC
	601293eb5da6aadf427381c5a2b15f08
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 80.76.153.6
Subject: Re: [bug-inetutils] Standard ports using IPPORT_*.
X-BeenThere: bug-inetutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Bug reports for the GNU Internet utilities <bug-inetutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-inetutils>
List-Post: <mailto:bug-inetutils@gnu.org>
List-Help: <mailto:bug-inetutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 15 Jan 2012 17:10:09 -0000

söndag den 15 januari 2012 klockan 09:54 skrev Alfred M. Szmidt detta:
>    I have just observe that depending on library vendor,
>    the file <netinet/in.h> might declare IPPORT_* as
>    "enum" as Glibc does, or as macro, as OpenSolaris does.
>    Presently, only IPPORT_RESERVED is in use by us, namely
>    in ftpd, libinetutils, rlogind, rshd, and traceroute.
> 
>    [...]
>
>    The individual constants are not always present: IPPORT_SYSLOG
>    is missing in Glibc, but is present in SunOS.
> 
> Do we know any systems where IPPORT_* is not defined?  If those
> systems are not common, we can simply use the value directly.

We are using IPPORT_RESERVED without testing is presence. Good so:

  /* Glibc */
  enum {
    IPPORT_RESERVED = 1024
  }

  /* OpenBSD, NetBSD, OpenSolaris */
  #defined IPPORT_RESERVED 1024

The general situation is this:

  Glibc: A fairly small collection of IPPORT_*, all enum declared.

  OpenSolaris: A larger collection IPPORT_*, all are defined macros.

  OpenBSD, NetBSD: Only IPPORT_RESERVED and three (resp., four) more
    related to port ranges; all are defined as macros. No macros for
    serviceable port numbers.

> If we still want to support systems where IPPORT_* is not defined, we
> should do a configuration check.

Clearly Glibc is the misbehaving fellow here. The missing port numbers
in BSD are no problem at all.

Regards,
  Mats


From MAILER-DAEMON Tue Jan 17 03:19:35 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Rn4GV-00078k-Nh
	for mharc-bug-inetutils@gnu.org; Tue, 17 Jan 2012 03:19:35 -0500
Received: from eggs.gnu.org ([140.186.70.92]:40087)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <akfaew@jasminek.net>) id 1Rn2gR-0005VH-7m
	for bug-inetutils@gnu.org; Tue, 17 Jan 2012 01:38:15 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <akfaew@jasminek.net>) id 1Rn2gQ-00080c-Cg
	for bug-inetutils@gnu.org; Tue, 17 Jan 2012 01:38:15 -0500
Received: from jasminek.net ([156.17.4.19]:31088 helo=spock.jasminek.net)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <akfaew@jasminek.net>) id 1Rn2gQ-00080K-1X
	for bug-inetutils@gnu.org; Tue, 17 Jan 2012 01:38:14 -0500
Received: from localhost (1000@localhost [IPv6:::1])
	by spock.jasminek.net (OpenSMTPD) with ESMTP id 84725173
	for <bug-inetutils@gnu.org>; Tue, 17 Jan 2012 07:38:11 +0100 (CET)
Date: Tue, 17 Jan 2012 07:38:10 +0100
From: Michal Mazurek <akfaew@jasminek.net>
To: bug-inetutils@gnu.org
Message-ID: <20120117063810.GA13279@akfaew.jasminek.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 156.17.4.19
X-Mailman-Approved-At: Tue, 17 Jan 2012 03:19:34 -0500
Subject: [bug-inetutils] ftpd segfault
X-BeenThere: bug-inetutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Bug reports for the GNU Internet utilities <bug-inetutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-inetutils>
List-Post: <mailto:bug-inetutils@gnu.org>
List-Help: <mailto:bug-inetutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 17 Jan 2012 06:38:16 -0000

Run in the source dir:
./ftpd/ftpd -a default

ftpd will segfault.

OS is debian, linux 2.6.38-2-686.

Please CC me when replying, I am not subscribed to this list.

-- 
Michal Mazurek


From MAILER-DAEMON Tue Jan 17 03:52:05 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Rn4lx-00061u-9H
	for mharc-bug-inetutils@gnu.org; Tue, 17 Jan 2012 03:52:05 -0500
Received: from eggs.gnu.org ([140.186.70.92]:41573)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <simon@josefsson.org>) id 1Rn4lq-00061L-HQ
	for bug-inetutils@gnu.org; Tue, 17 Jan 2012 03:52:04 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <simon@josefsson.org>) id 1Rn4lk-0003Dj-KE
	for bug-inetutils@gnu.org; Tue, 17 Jan 2012 03:51:58 -0500
Received: from static-213-115-179-173.sme.bredbandsbolaget.se
	([213.115.179.173]:38601 helo=yxa-v.extundo.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <simon@josefsson.org>) id 1Rn4lk-0003Df-8C
	for bug-inetutils@gnu.org; Tue, 17 Jan 2012 03:51:52 -0500
Received: from latte.josefsson.org
	(static-213-115-179-130.sme.bredbandsbolaget.se [213.115.179.130])
	(authenticated bits=0)
	by yxa-v.extundo.com (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id
	q0H8phME032733
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT);
	Tue, 17 Jan 2012 09:51:45 +0100
From: Simon Josefsson <simon@josefsson.org>
To: Michal Mazurek <akfaew@jasminek.net>
References: <20120117063810.GA13279@akfaew.jasminek.net>
OpenPGP: id=B565716F; url=http://josefsson.org/key.txt
X-Hashcash: 1:22:120117:bug-inetutils@gnu.org::QMWvh0u16eft228D:BpRq
X-Hashcash: 1:22:120117:akfaew@jasminek.net::VCs5jQGknSD/Itia:09d21
Date: Tue, 17 Jan 2012 09:51:43 +0100
In-Reply-To: <20120117063810.GA13279@akfaew.jasminek.net> (Michal Mazurek's
	message of "Tue, 17 Jan 2012 07:38:10 +0100")
Message-ID: <871uqylnj4.fsf@latte.josefsson.org>
User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.92 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Virus-Scanned: clamav-milter 0.97.3 at yxa-v
X-Virus-Status: Clean
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1)
X-Received-From: 213.115.179.173
Cc: bug-inetutils@gnu.org
Subject: Re: [bug-inetutils] ftpd segfault
X-BeenThere: bug-inetutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Bug reports for the GNU Internet utilities <bug-inetutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-inetutils>
List-Post: <mailto:bug-inetutils@gnu.org>
List-Help: <mailto:bug-inetutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 17 Jan 2012 08:52:04 -0000

Michal Mazurek <akfaew@jasminek.net> writes:

> Run in the source dir:
> ./ftpd/ftpd -a default
>
> ftpd will segfault.
>
> OS is debian, linux 2.6.38-2-686.
>
> Please CC me when replying, I am not subscribed to this list.

Thank you for the report.  The cause is that arg is NULL here:

    case 'a':
      if (strcasecmp (arg, "default") == 0)
	cred.auth_type = AUTH_TYPE_PASSWD;
...
      break;

You may work around this by specifying 'ftpd -adefault' or 'ftpd
--auth=default' as suggested by the --help output.

Some observations:

1) The -a parameter is defined to only optionally take an option:

  { "auth", 'a', "AUTH", OPTION_ARG_OPTIONAL,
    "use AUTH for authentication",
    GRID+1 },

What's the point of this?

2) The '-a' parameter seems to be used for other things by BSD ftpd:

     -a      Give anonymous an other login-name (anonymous and ftpd will still
             work).

Do we have some parameter confusion here?

I believe the patch below should be applied.  It will solve the crash.
Thoughts?

/Simon

diff --git a/ftpd/ftpd.c b/ftpd/ftpd.c
index 29e9eed..bc31558 100644
--- a/ftpd/ftpd.c
+++ b/ftpd/ftpd.c
@@ -283,7 +283,7 @@ static struct argp_option options[] = {
   { "umask", 'u', "VAL", 0,
     "set default umask",
     GRID+1 },
-  { "auth", 'a', "AUTH", OPTION_ARG_OPTIONAL,
+  { "auth", 'a', "AUTH", 0,
     "use AUTH for authentication",
     GRID+1 },
   { NULL, 0, NULL, 0, "AUTH can be one of the following:", GRID+2 },


From MAILER-DAEMON Tue Jan 17 05:46:15 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Rn6YR-0005Uj-5N
	for mharc-bug-inetutils@gnu.org; Tue, 17 Jan 2012 05:46:15 -0500
Received: from eggs.gnu.org ([140.186.70.92]:58761)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <akfaew@jasminek.net>) id 1Rn6YL-0005SK-1p
	for bug-inetutils@gnu.org; Tue, 17 Jan 2012 05:46:14 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <akfaew@jasminek.net>) id 1Rn6YF-0005C6-46
	for bug-inetutils@gnu.org; Tue, 17 Jan 2012 05:46:09 -0500
Received: from jasminek.net ([156.17.4.19]:33861 helo=spock.jasminek.net)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <akfaew@jasminek.net>) id 1Rn6YE-0005Bs-Nh
	for bug-inetutils@gnu.org; Tue, 17 Jan 2012 05:46:03 -0500
Received: from localhost (1000@localhost [IPv6:::1])
	by spock.jasminek.net (OpenSMTPD) with ESMTP id d4a16fc2;
	Tue, 17 Jan 2012 11:46:00 +0100 (CET)
Date: Tue, 17 Jan 2012 11:46:00 +0100
From: Michal Mazurek <akfaew@jasminek.net>
To: Simon Josefsson <simon@josefsson.org>
Message-ID: <20120117104600.GA12131@akfaew.jasminek.net>
References: <20120117063810.GA13279@akfaew.jasminek.net>
	<871uqylnj4.fsf@latte.josefsson.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <871uqylnj4.fsf@latte.josefsson.org>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 156.17.4.19
Cc: bug-inetutils@gnu.org
Subject: Re: [bug-inetutils] ftpd segfault
X-BeenThere: bug-inetutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Bug reports for the GNU Internet utilities <bug-inetutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-inetutils>
List-Post: <mailto:bug-inetutils@gnu.org>
List-Help: <mailto:bug-inetutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 17 Jan 2012 10:46:14 -0000

On Tue, Jan 17, 2012 at 09:51:43AM +0100, Simon Josefsson wrote:
> Michal Mazurek <akfaew@jasminek.net> writes:
> 
> > Run in the source dir:
> > ./ftpd/ftpd -a default
> >
> > ftpd will segfault.
> >
> > OS is debian, linux 2.6.38-2-686.
> >
> > Please CC me when replying, I am not subscribed to this list.
> 
> What's the point of this?
> Do we have some parameter confusion here?

I'm trying to make ftpd run on a minimalistic system on an embedded
computer. SSH allows the user to log in but ftpd does not. I was trying
if -a default would help.

> I believe the patch below should be applied.  It will solve the crash.
> Thoughts?

Thanks, this fixes the segfault.

-- 
Michal Mazurek


From MAILER-DAEMON Tue Jan 17 08:21:33 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Rn8yj-0005G1-P7
	for mharc-bug-inetutils@gnu.org; Tue, 17 Jan 2012 08:21:33 -0500
Received: from eggs.gnu.org ([140.186.70.92]:35547)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <simon@josefsson.org>) id 1Rn8yc-0005Fp-Pr
	for bug-inetutils@gnu.org; Tue, 17 Jan 2012 08:21:31 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <simon@josefsson.org>) id 1Rn8yb-0008JK-IA
	for bug-inetutils@gnu.org; Tue, 17 Jan 2012 08:21:26 -0500
Received: from static-213-115-179-173.sme.bredbandsbolaget.se
	([213.115.179.173]:41147 helo=yxa-v.extundo.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <simon@josefsson.org>) id 1Rn8yb-0008J2-03
	for bug-inetutils@gnu.org; Tue, 17 Jan 2012 08:21:25 -0500
Received: from latte.josefsson.org
	(static-213-115-179-130.sme.bredbandsbolaget.se [213.115.179.130])
	(authenticated bits=0)
	by yxa-v.extundo.com (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id
	q0HDLEDj013086
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT);
	Tue, 17 Jan 2012 14:21:15 +0100
From: Simon Josefsson <simon@josefsson.org>
To: Michal Mazurek <akfaew@jasminek.net>
References: <20120117063810.GA13279@akfaew.jasminek.net>
	<871uqylnj4.fsf@latte.josefsson.org>
OpenPGP: id=B565716F; url=http://josefsson.org/key.txt
X-Hashcash: 1:22:120117:bug-inetutils@gnu.org::w8nYnFkItUnKeQWK:6X0+
X-Hashcash: 1:22:120117:akfaew@jasminek.net::hS8SIu2nxhCWYKSt:GvP2
Date: Tue, 17 Jan 2012 14:21:14 +0100
In-Reply-To: <871uqylnj4.fsf@latte.josefsson.org> (Simon Josefsson's message
	of "Tue, 17 Jan 2012 09:51:43 +0100")
Message-ID: <871uqyqxbp.fsf@latte.josefsson.org>
User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.92 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Virus-Scanned: clamav-milter 0.97.3 at yxa-v
X-Virus-Status: Clean
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1)
X-Received-From: 213.115.179.173
Cc: bug-inetutils@gnu.org
Subject: Re: [bug-inetutils] ftpd segfault
X-BeenThere: bug-inetutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Bug reports for the GNU Internet utilities <bug-inetutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-inetutils>
List-Post: <mailto:bug-inetutils@gnu.org>
List-Help: <mailto:bug-inetutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 17 Jan 2012 13:21:31 -0000

Simon Josefsson <simon@josefsson.org> writes:

> 2) The '-a' parameter seems to be used for other things by BSD ftpd:
>
>      -a      Give anonymous an other login-name (anonymous and ftpd will still
>              work).
>
> Do we have some parameter confusion here?

The '-a' parameter seems particular troublesome.  The above was actually
from my Debian system.

On Solaris it is:

     -a              Enables use of the ftpaccess(4) file.

On FreeBSD [1] it is:

  -a 	When -D is specified, accept connections only on the specified
   address. 

And on InetUtils it is:

  -a, --auth=[AUTH]         Use AUTH for authentication, it can be:

I think InetUtils is the same as Heimdal and MIT Kerberos though.

Sigh.  This is just an observation, I'm not arguing InetUtils should
change its behaviour.

/Simon

[1] http://www.gsp.com/cgi-bin/man.cgi?section=8&topic=ftpd


From MAILER-DAEMON Tue Jan 17 08:24:07 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Rn91D-0006yR-S8
	for mharc-bug-inetutils@gnu.org; Tue, 17 Jan 2012 08:24:07 -0500
Received: from eggs.gnu.org ([140.186.70.92]:36359)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <akfaew@jasminek.net>) id 1Rn916-0006fI-R2
	for bug-inetutils@gnu.org; Tue, 17 Jan 2012 08:24:06 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <akfaew@jasminek.net>) id 1Rn915-0000Va-QL
	for bug-inetutils@gnu.org; Tue, 17 Jan 2012 08:24:00 -0500
Received: from jasminek.net ([156.17.4.19]:24493 helo=spock.jasminek.net)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <akfaew@jasminek.net>) id 1Rn913-0000UO-TI
	for bug-inetutils@gnu.org; Tue, 17 Jan 2012 08:23:59 -0500
Received: from localhost (1000@localhost [IPv6:::1])
	by spock.jasminek.net (OpenSMTPD) with ESMTP id 2f601c3e;
	Tue, 17 Jan 2012 14:23:55 +0100 (CET)
Date: Tue, 17 Jan 2012 14:23:55 +0100
From: Michal Mazurek <akfaew@jasminek.net>
To: Simon Josefsson <simon@josefsson.org>
Message-ID: <20120117132355.GA25939@akfaew.jasminek.net>
References: <20120117063810.GA13279@akfaew.jasminek.net>
	<871uqylnj4.fsf@latte.josefsson.org>
	<871uqyqxbp.fsf@latte.josefsson.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <871uqyqxbp.fsf@latte.josefsson.org>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 156.17.4.19
Cc: bug-inetutils@gnu.org
Subject: Re: [bug-inetutils] ftpd segfault
X-BeenThere: bug-inetutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Bug reports for the GNU Internet utilities <bug-inetutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-inetutils>
List-Post: <mailto:bug-inetutils@gnu.org>
List-Help: <mailto:bug-inetutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 17 Jan 2012 13:24:06 -0000

On Tue, Jan 17, 2012 at 02:21:14PM +0100, Simon Josefsson wrote:
> Simon Josefsson <simon@josefsson.org> writes:
> 
> > 2) The '-a' parameter seems to be used for other things by BSD ftpd:
> >
> >      -a      Give anonymous an other login-name (anonymous and ftpd will still
> >              work).
> >
> > Do we have some parameter confusion here?
> 
> The '-a' parameter seems particular troublesome.  The above was actually
> from my Debian system.
> 
> On Solaris it is:
> 
>      -a              Enables use of the ftpaccess(4) file.
> 
> On FreeBSD [1] it is:
> 
>   -a 	When -D is specified, accept connections only on the specified
>    address. 
> 
> And on InetUtils it is:
> 
>   -a, --auth=[AUTH]         Use AUTH for authentication, it can be:
> 
> I think InetUtils is the same as Heimdal and MIT Kerberos though.
> 
> Sigh.  This is just an observation, I'm not arguing InetUtils should
> change its behaviour.

I'd like to add that OpenBSD's ftpd does not have an -a switch.

-- 
Michal Mazurek


From MAILER-DAEMON Tue Jan 17 08:29:28 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Rn96O-000163-J0
	for mharc-bug-inetutils@gnu.org; Tue, 17 Jan 2012 08:29:28 -0500
Received: from eggs.gnu.org ([140.186.70.92]:36856)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <simon@josefsson.org>) id 1Rn96L-00014Z-SY
	for bug-inetutils@gnu.org; Tue, 17 Jan 2012 08:29:26 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <simon@josefsson.org>) id 1Rn96G-000292-2c
	for bug-inetutils@gnu.org; Tue, 17 Jan 2012 08:29:25 -0500
Received: from static-213-115-179-173.sme.bredbandsbolaget.se
	([213.115.179.173]:41243 helo=yxa-v.extundo.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <simon@josefsson.org>) id 1Rn96F-00028v-L0
	for bug-inetutils@gnu.org; Tue, 17 Jan 2012 08:29:20 -0500
Received: from latte.josefsson.org
	(static-213-115-179-130.sme.bredbandsbolaget.se [213.115.179.130])
	(authenticated bits=0)
	by yxa-v.extundo.com (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id
	q0HDTAIx013341
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT);
	Tue, 17 Jan 2012 14:29:11 +0100
From: Simon Josefsson <simon@josefsson.org>
To: Michal Mazurek <akfaew@jasminek.net>
References: <20120117063810.GA13279@akfaew.jasminek.net>
	<871uqylnj4.fsf@latte.josefsson.org>
	<871uqyqxbp.fsf@latte.josefsson.org>
	<20120117132355.GA25939@akfaew.jasminek.net>
OpenPGP: id=B565716F; url=http://josefsson.org/key.txt
X-Hashcash: 1:22:120117:bug-inetutils@gnu.org::C+djmFZ0gFOMPYfx:6rl6
X-Hashcash: 1:22:120117:akfaew@jasminek.net::jTswj209XqcrFMY+:EeES
Date: Tue, 17 Jan 2012 14:29:10 +0100
In-Reply-To: <20120117132355.GA25939@akfaew.jasminek.net> (Michal Mazurek's
	message of "Tue, 17 Jan 2012 14:23:55 +0100")
Message-ID: <87obu2pie1.fsf@latte.josefsson.org>
User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.92 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Virus-Scanned: clamav-milter 0.97.3 at yxa-v
X-Virus-Status: Clean
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1)
X-Received-From: 213.115.179.173
Cc: bug-inetutils@gnu.org
Subject: Re: [bug-inetutils] ftpd segfault
X-BeenThere: bug-inetutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Bug reports for the GNU Internet utilities <bug-inetutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-inetutils>
List-Post: <mailto:bug-inetutils@gnu.org>
List-Help: <mailto:bug-inetutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 17 Jan 2012 13:29:27 -0000

Michal Mazurek <akfaew@jasminek.net> writes:

> On Tue, Jan 17, 2012 at 02:21:14PM +0100, Simon Josefsson wrote:
>> Simon Josefsson <simon@josefsson.org> writes:
>> 
>> > 2) The '-a' parameter seems to be used for other things by BSD ftpd:
>> >
>> >      -a      Give anonymous an other login-name (anonymous and ftpd will still
>> >              work).
>> >
>> > Do we have some parameter confusion here?
>> 
>> The '-a' parameter seems particular troublesome.  The above was actually
>> from my Debian system.
>> 
>> On Solaris it is:
>> 
>>      -a              Enables use of the ftpaccess(4) file.
>> 
>> On FreeBSD [1] it is:
>> 
>>   -a 	When -D is specified, accept connections only on the specified
>>    address. 
>> 
>> And on InetUtils it is:
>> 
>>   -a, --auth=[AUTH]         Use AUTH for authentication, it can be:
>> 
>> I think InetUtils is the same as Heimdal and MIT Kerberos though.
>> 
>> Sigh.  This is just an observation, I'm not arguing InetUtils should
>> change its behaviour.
>
> I'd like to add that OpenBSD's ftpd does not have an -a switch.

Great.

Are there any standards that specify 'ftpd' behaviour that we care to
align us with?  I checked POSIX but it doesn't appear to standardize
ftpd.  I don't see anything obvious on the wikipedia page either:

https://en.wikipedia.org/wiki/Ftpd

I suggest we apply the patch I came up with to silence the crash, and
simply forget about the compatibility issues of 'ftpd -a'.  Btw, thanks
for testing.

/Simon


From MAILER-DAEMON Tue Jan 17 09:11:35 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Rn9l9-0007OC-Bg
	for mharc-bug-inetutils@gnu.org; Tue, 17 Jan 2012 09:11:35 -0500
Received: from eggs.gnu.org ([140.186.70.92]:60034)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <akfaew@jasminek.net>) id 1Rn9l1-0007JV-QR
	for bug-inetutils@gnu.org; Tue, 17 Jan 2012 09:11:33 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <akfaew@jasminek.net>) id 1Rn9ks-0001OM-7G
	for bug-inetutils@gnu.org; Tue, 17 Jan 2012 09:11:27 -0500
Received: from jasminek.net ([156.17.4.19]:17743 helo=spock.jasminek.net)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <akfaew@jasminek.net>) id 1Rn9kr-0001O7-Tq
	for bug-inetutils@gnu.org; Tue, 17 Jan 2012 09:11:18 -0500
Received: from localhost (1000@localhost [IPv6:::1])
	by spock.jasminek.net (OpenSMTPD) with ESMTP id ea1f7184
	for <bug-inetutils@gnu.org>; Tue, 17 Jan 2012 15:11:15 +0100 (CET)
Date: Tue, 17 Jan 2012 15:11:15 +0100
From: Michal Mazurek <akfaew@jasminek.net>
To: bug-inetutils@gnu.org
Message-ID: <20120117141115.GA23205@akfaew.jasminek.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 156.17.4.19
Subject: [bug-inetutils] disabling dns
X-BeenThere: bug-inetutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Bug reports for the GNU Internet utilities <bug-inetutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-inetutils>
List-Post: <mailto:bug-inetutils@gnu.org>
List-Help: <mailto:bug-inetutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 17 Jan 2012 14:11:33 -0000

I'm running ftpd on an embedded host in a network without DNS. There is
a significant delay when logging in. Can I disable resolving hostnames?
If not, please tell me which part of the source code is responsible for
this.

Please CC me when replying, I am not subscribed to this list.


Thank you for your work on inetutils, I use a couple of your programs in
my work.

-- 
Michal Mazurek


From MAILER-DAEMON Tue Jan 17 10:06:38 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1RnAcQ-0007TQ-25
	for mharc-bug-inetutils@gnu.org; Tue, 17 Jan 2012 10:06:38 -0500
Received: from eggs.gnu.org ([140.186.70.92]:57805)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <simon@josefsson.org>) id 1RnAcJ-0007RA-De
	for bug-inetutils@gnu.org; Tue, 17 Jan 2012 10:06:36 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <simon@josefsson.org>) id 1RnAcF-0003cf-4g
	for bug-inetutils@gnu.org; Tue, 17 Jan 2012 10:06:31 -0500
Received: from static-213-115-179-173.sme.bredbandsbolaget.se
	([213.115.179.173]:42274 helo=yxa-v.extundo.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <simon@josefsson.org>) id 1RnAcE-0003cR-Pb
	for bug-inetutils@gnu.org; Tue, 17 Jan 2012 10:06:27 -0500
Received: from latte.josefsson.org
	(static-213-115-179-130.sme.bredbandsbolaget.se [213.115.179.130])
	(authenticated bits=0)
	by yxa-v.extundo.com (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id
	q0HF6HA8018043
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT);
	Tue, 17 Jan 2012 16:06:19 +0100
From: Simon Josefsson <simon@josefsson.org>
To: Michal Mazurek <akfaew@jasminek.net>
References: <20120117141115.GA23205@akfaew.jasminek.net>
OpenPGP: id=B565716F; url=http://josefsson.org/key.txt
X-Hashcash: 1:22:120117:akfaew@jasminek.net::Z/yS6n+Fy1Gbr0V1:64lO
X-Hashcash: 1:22:120117:bug-inetutils@gnu.org::g8YAu74OYV2NbqbF:jagF
Date: Tue, 17 Jan 2012 16:06:17 +0100
In-Reply-To: <20120117141115.GA23205@akfaew.jasminek.net> (Michal Mazurek's
	message of "Tue, 17 Jan 2012 15:11:15 +0100")
Message-ID: <87ehuynzbq.fsf@latte.josefsson.org>
User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.92 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Virus-Scanned: clamav-milter 0.97.3 at yxa-v
X-Virus-Status: Clean
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1)
X-Received-From: 213.115.179.173
Cc: bug-inetutils@gnu.org
Subject: Re: [bug-inetutils] disabling dns
X-BeenThere: bug-inetutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Bug reports for the GNU Internet utilities <bug-inetutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-inetutils>
List-Post: <mailto:bug-inetutils@gnu.org>
List-Help: <mailto:bug-inetutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 17 Jan 2012 15:06:36 -0000

Michal Mazurek <akfaew@jasminek.net> writes:

> I'm running ftpd on an embedded host in a network without DNS. There is
> a significant delay when logging in. Can I disable resolving hostnames?

Can't you just edit /etc/nsswitch.conf to disable DNS globally?  Remove
'dns' from the 'hosts:' line.  Then I would assume DNS delays goes away.

/Simon


From MAILER-DAEMON Tue Jan 17 13:26:22 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1RnDji-0003XW-CB
	for mharc-bug-inetutils@gnu.org; Tue, 17 Jan 2012 13:26:22 -0500
Received: from eggs.gnu.org ([140.186.70.92]:34933)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <SolovjevPS@yandex.ru>) id 1Rn7Xi-0001EB-Qz
	for bug-inetutils@gnu.org; Tue, 17 Jan 2012 06:49:38 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <SolovjevPS@yandex.ru>) id 1Rn7Xb-0008NM-0p
	for bug-inetutils@gnu.org; Tue, 17 Jan 2012 06:49:34 -0500
Received: from forward14.mail.yandex.net ([95.108.130.92]:51678)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <SolovjevPS@yandex.ru>) id 1Rn7Xa-0008Mk-Ml
	for bug-inetutils@gnu.org; Tue, 17 Jan 2012 06:49:26 -0500
Received: from smtp14.mail.yandex.net (smtp14.mail.yandex.net [95.108.131.192])
	by forward14.mail.yandex.net (Yandex) with ESMTP id D83BC198116C
	for <bug-inetutils@gnu.org>; Tue, 17 Jan 2012 15:49:23 +0400 (MSK)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail;
	t=1326800963; bh=Rg84BY0u3VUqBzznxhiecqv308ec/kH7iwK+R7ec8WE=;
	h=Message-ID:Date:From:MIME-Version:To:Subject:Content-Type:
	Content-Transfer-Encoding;
	b=I4UA2uSjJR76n9sE4uaP3/gbmcGBEO064mZlT0sJCxrAmRTi+Jf/bBkj3RGqr3L7a
	bwYLUnC4G7Mx8TelHJEW4Mt7Bt2LgRgrq6zK0IPIFZEqmscwzuCVThnPeSFCI/8xSP
	doh5StmjIdsqYXFKdKh2WsBUn6weINdqw0oR75jo=
Received: from smtp14.mail.yandex.net (localhost [127.0.0.1])
	by smtp14.mail.yandex.net (Yandex) with ESMTP id BEE0A1B60268
	for <bug-inetutils@gnu.org>; Tue, 17 Jan 2012 15:49:23 +0400 (MSK)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail;
	t=1326800963; bh=Rg84BY0u3VUqBzznxhiecqv308ec/kH7iwK+R7ec8WE=;
	h=Message-ID:Date:From:MIME-Version:To:Subject:Content-Type:
	Content-Transfer-Encoding;
	b=I4UA2uSjJR76n9sE4uaP3/gbmcGBEO064mZlT0sJCxrAmRTi+Jf/bBkj3RGqr3L7a
	bwYLUnC4G7Mx8TelHJEW4Mt7Bt2LgRgrq6zK0IPIFZEqmscwzuCVThnPeSFCI/8xSP
	doh5StmjIdsqYXFKdKh2WsBUn6weINdqw0oR75jo=
Received: from tower.nita.spb.ru (tower.nita.spb.ru [195.131.77.126])
	by smtp14.mail.yandex.net (nwsmtp/Yandex) with ESMTP id
	nNIuFkE1-nNIWEVYf; Tue, 17 Jan 2012 15:49:23 +0400
X-Yandex-Spam: 1
Message-ID: <4F156043.70105@yandex.ru>
Date: Tue, 17 Jan 2012 15:49:23 +0400
From: "Solovjev P.S." <SolovjevPS@yandex.ru>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:8.0) Gecko/20111124 Thunderbird/8.0
MIME-Version: 1.0
To: bug-inetutils@gnu.org
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 95.108.130.92
X-Mailman-Approved-At: Tue, 17 Jan 2012 13:26:21 -0500
Subject: [bug-inetutils] Critical bug! rexecd can execute any command with
	ANY password.
X-BeenThere: bug-inetutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Bug reports for the GNU Internet utilities <bug-inetutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-inetutils>
List-Post: <mailto:bug-inetutils@gnu.org>
List-Help: <mailto:bug-inetutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 17 Jan 2012 11:49:38 -0000

Hello.

Version: Inetutils 1.9.1.

rexecd after wrong password goes to "die" function. But die function 
does not contain "exit" and will return control to "doit" function and 
then execute remote command!

Please correct this functionality!


From MAILER-DAEMON Tue Jan 17 14:52:21 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1RnF4v-0000DQ-E9
	for mharc-bug-inetutils@gnu.org; Tue, 17 Jan 2012 14:52:21 -0500
Received: from eggs.gnu.org ([140.186.70.92]:34242)
	by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <ams@gnu.org>)
	id 1RnF4t-0000BO-1A
	for bug-inetutils@gnu.org; Tue, 17 Jan 2012 14:52:19 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <ams@gnu.org>) id 1RnF4o-0004kN-Ov
	for bug-inetutils@gnu.org; Tue, 17 Jan 2012 14:52:19 -0500
Received: from fencepost.gnu.org ([140.186.70.10]:37090)
	by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ams@gnu.org>)
	id 1RnF4o-0004kJ-M8
	for bug-inetutils@gnu.org; Tue, 17 Jan 2012 14:52:14 -0500
Received: from ams by fencepost.gnu.org with local (Exim 4.71)
	(envelope-from <ams@gnu.org>)
	id 1RnF4n-0006Mo-Dk; Tue, 17 Jan 2012 14:52:13 -0500
Date: Tue, 17 Jan 2012 14:52:13 -0500
Message-Id: <E1RnF4n-0006Mo-Dk@fencepost.gnu.org>
From: ams@gnu.org (Alfred M. Szmidt)
To: Simon Josefsson <simon@josefsson.org>
In-reply-to: <87ehuynzbq.fsf@latte.josefsson.org> (message from Simon
	Josefsson on Tue, 17 Jan 2012 16:06:17 +0100)
References: <20120117141115.GA23205@akfaew.jasminek.net>
	<87ehuynzbq.fsf@latte.josefsson.org>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 140.186.70.10
Cc: bug-inetutils@gnu.org, akfaew@jasminek.net
Subject: Re: [bug-inetutils] disabling dns
X-BeenThere: bug-inetutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: ams@gnu.org
List-Id: Bug reports for the GNU Internet utilities <bug-inetutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-inetutils>
List-Post: <mailto:bug-inetutils@gnu.org>
List-Help: <mailto:bug-inetutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 17 Jan 2012 19:52:20 -0000

   > I'm running ftpd on an embedded host in a network without DNS. There is
   > a significant delay when logging in. Can I disable resolving hostnames?

   Can't you just edit /etc/nsswitch.conf to disable DNS globally?  Remove
   'dns' from the 'hosts:' line.  Then I would assume DNS delays goes away.

That would do the trick indeed.


From MAILER-DAEMON Tue Jan 17 14:52:38 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1RnF5C-0000wK-6O
	for mharc-bug-inetutils@gnu.org; Tue, 17 Jan 2012 14:52:38 -0500
Received: from eggs.gnu.org ([140.186.70.92]:34283)
	by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <ams@gnu.org>)
	id 1RnF59-0000i2-Bk
	for bug-inetutils@gnu.org; Tue, 17 Jan 2012 14:52:36 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <ams@gnu.org>) id 1RnF52-0004mH-RW
	for bug-inetutils@gnu.org; Tue, 17 Jan 2012 14:52:30 -0500
Received: from fencepost.gnu.org ([140.186.70.10]:37099)
	by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ams@gnu.org>)
	id 1RnF52-0004mD-Ng
	for bug-inetutils@gnu.org; Tue, 17 Jan 2012 14:52:28 -0500
Received: from ams by fencepost.gnu.org with local (Exim 4.71)
	(envelope-from <ams@gnu.org>)
	id 1RnF52-0006NW-Hq; Tue, 17 Jan 2012 14:52:28 -0500
Date: Tue, 17 Jan 2012 14:52:28 -0500
Message-Id: <E1RnF52-0006NW-Hq@fencepost.gnu.org>
From: ams@gnu.org (Alfred M. Szmidt)
To: Simon Josefsson <simon@josefsson.org>
In-reply-to: <87obu2pie1.fsf@latte.josefsson.org> (message from Simon
	Josefsson on Tue, 17 Jan 2012 14:29:10 +0100)
References: <20120117063810.GA13279@akfaew.jasminek.net>
	<871uqylnj4.fsf@latte.josefsson.org>
	<871uqyqxbp.fsf@latte.josefsson.org>
	<20120117132355.GA25939@akfaew.jasminek.net>
	<87obu2pie1.fsf@latte.josefsson.org>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 140.186.70.10
Cc: bug-inetutils@gnu.org, akfaew@jasminek.net
Subject: Re: [bug-inetutils] ftpd segfault
X-BeenThere: bug-inetutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: ams@gnu.org
List-Id: Bug reports for the GNU Internet utilities <bug-inetutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-inetutils>
List-Post: <mailto:bug-inetutils@gnu.org>
List-Help: <mailto:bug-inetutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 17 Jan 2012 19:52:36 -0000

   Are there any standards that specify 'ftpd' behaviour that we care to
   align us with?  I checked POSIX but it doesn't appear to standardize
   ftpd.  I don't see anything obvious on the wikipedia page either:

POSIX doesn't standardise anything of what we do... Makes life
interesting. :-)


From MAILER-DAEMON Tue Jan 17 14:52:38 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1RnF5C-0000vm-2Y
	for mharc-bug-inetutils@gnu.org; Tue, 17 Jan 2012 14:52:38 -0500
Received: from eggs.gnu.org ([140.186.70.92]:34306)
	by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <ams@gnu.org>)
	id 1RnF59-0000sU-BS
	for bug-inetutils@gnu.org; Tue, 17 Jan 2012 14:52:36 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <ams@gnu.org>) id 1RnF58-0004mt-AV
	for bug-inetutils@gnu.org; Tue, 17 Jan 2012 14:52:35 -0500
Received: from fencepost.gnu.org ([140.186.70.10]:37106)
	by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ams@gnu.org>)
	id 1RnF58-0004mp-91
	for bug-inetutils@gnu.org; Tue, 17 Jan 2012 14:52:34 -0500
Received: from ams by fencepost.gnu.org with local (Exim 4.71)
	(envelope-from <ams@gnu.org>)
	id 1RnF58-0006O7-6g; Tue, 17 Jan 2012 14:52:34 -0500
Date: Tue, 17 Jan 2012 14:52:34 -0500
Message-Id: <E1RnF58-0006O7-6g@fencepost.gnu.org>
From: ams@gnu.org (Alfred M. Szmidt)
To: Simon Josefsson <simon@josefsson.org>
In-reply-to: <871uqylnj4.fsf@latte.josefsson.org> (message from Simon
	Josefsson on Tue, 17 Jan 2012 09:51:43 +0100)
References: <20120117063810.GA13279@akfaew.jasminek.net>
	<871uqylnj4.fsf@latte.josefsson.org>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 140.186.70.10
Cc: bug-inetutils@gnu.org, akfaew@jasminek.net
Subject: Re: [bug-inetutils] ftpd segfault
X-BeenThere: bug-inetutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: ams@gnu.org
List-Id: Bug reports for the GNU Internet utilities <bug-inetutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-inetutils>
List-Post: <mailto:bug-inetutils@gnu.org>
List-Help: <mailto:bug-inetutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 17 Jan 2012 19:52:36 -0000

     { "auth", 'a', "AUTH", OPTION_ARG_OPTIONAL,
       "use AUTH for authentication",
       GRID+1 },

   What's the point of this?

Go figure, probobly a mistake when things got argpified. -a
should/must default to "default", and --auth=donkey should use donkey.

   I believe the patch below should be applied.  It will solve the crash.
   Thoughts?

Go for it.


From MAILER-DAEMON Wed Jan 18 05:05:01 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1RnSO5-0003qV-Hl
	for mharc-bug-inetutils@gnu.org; Wed, 18 Jan 2012 05:05:01 -0500
Received: from eggs.gnu.org ([140.186.70.92]:54324)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <simon@josefsson.org>) id 1RnSNx-0003pG-LP
	for bug-inetutils@gnu.org; Wed, 18 Jan 2012 05:04:59 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <simon@josefsson.org>) id 1RnSNw-0000V3-Pp
	for bug-inetutils@gnu.org; Wed, 18 Jan 2012 05:04:53 -0500
Received: from static-213-115-179-173.sme.bredbandsbolaget.se
	([213.115.179.173]:51514 helo=yxa-v.extundo.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <simon@josefsson.org>)
	id 1RnSNs-0000Rg-Fk; Wed, 18 Jan 2012 05:04:48 -0500
Received: from latte.josefsson.org
	(static-213-115-179-130.sme.bredbandsbolaget.se [213.115.179.130])
	(authenticated bits=0)
	by yxa-v.extundo.com (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id
	q0IA4VtZ003631
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT);
	Wed, 18 Jan 2012 11:04:34 +0100
From: Simon Josefsson <simon@josefsson.org>
To: ams@gnu.org
References: <20120117063810.GA13279@akfaew.jasminek.net>
	<871uqylnj4.fsf@latte.josefsson.org>
	<E1RnF58-0006O7-6g@fencepost.gnu.org>
OpenPGP: id=B565716F; url=http://josefsson.org/key.txt
X-Hashcash: 1:22:120118:bug-inetutils@gnu.org::0dLgUQE1isF6M7Wl:W7L
X-Hashcash: 1:22:120118:akfaew@jasminek.net::DuYQqp0n3Taz+PCr:4bmT
X-Hashcash: 1:22:120118:ams@gnu.org::hjF4cjZR6qo8usIB:MRU+
Date: Wed, 18 Jan 2012 11:04:32 +0100
In-Reply-To: <E1RnF58-0006O7-6g@fencepost.gnu.org> (Alfred M. Szmidt's message
	of "Tue, 17 Jan 2012 14:52:34 -0500")
Message-ID: <87lip58gy7.fsf@latte.josefsson.org>
User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.92 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1)
X-Received-From: 213.115.179.173
Cc: bug-inetutils@gnu.org, akfaew@jasminek.net
Subject: Re: [bug-inetutils] ftpd segfault
X-BeenThere: bug-inetutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Bug reports for the GNU Internet utilities <bug-inetutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-inetutils>
List-Post: <mailto:bug-inetutils@gnu.org>
List-Help: <mailto:bug-inetutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 18 Jan 2012 10:04:59 -0000

ams@gnu.org (Alfred M. Szmidt) writes:

>    I believe the patch below should be applied.  It will solve the crash.
>    Thoughts?
>
> Go for it.

I've applied the patch.

/Simon


From MAILER-DAEMON Wed Jan 18 11:24:43 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1RnYJX-0008GJ-4B
	for mharc-bug-inetutils@gnu.org; Wed, 18 Jan 2012 11:24:43 -0500
Received: from eggs.gnu.org ([140.186.70.92]:58835)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <ludo@gnu.org>) id 1RnYJN-0008F6-UN
	for bug-inetutils@gnu.org; Wed, 18 Jan 2012 11:24:40 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <ludo@gnu.org>) id 1RnYJH-0003NW-S6
	for bug-inetutils@gnu.org; Wed, 18 Jan 2012 11:24:33 -0500
Received: from mail1-relais-roc.national.inria.fr ([192.134.164.82]:11537)
	by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@gnu.org>)
	id 1RnYJH-0003NJ-NZ
	for bug-inetutils@gnu.org; Wed, 18 Jan 2012 11:24:27 -0500
X-IronPort-AV: E=Sophos;i="4.71,529,1320620400"; d="scan'208";a="140404882"
Received: from reverse-83.fdn.fr (HELO pluto) ([80.67.176.83])
	by mail1-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES128-SHA;
	18 Jan 2012 17:24:25 +0100
From: ludo@gnu.org (Ludovic =?iso-8859-1?Q?Court=E8s?=)
To: bug-inetutils@gnu.org
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: 29 =?iso-8859-1?Q?Niv=F4se?= an 220 de la
	=?iso-8859-1?Q?R=E9volution?=
X-PGP-Key-ID: 0xEA52ECF4
X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc
X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA  D15D 77DD 95E2 EA52 ECF4
X-OS: x86_64-unknown-linux-gnu
Date: Wed, 18 Jan 2012 17:24:24 +0100
Message-ID: <87fwfdvv0n.fsf@gnu.org>
User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.90 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 192.134.164.82
Subject: [bug-inetutils] tests/syslogd.sh and /tmp
X-BeenThere: bug-inetutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Bug reports for the GNU Internet utilities <bug-inetutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-inetutils>
List-Post: <mailto:bug-inetutils@gnu.org>
List-Help: <mailto:bug-inetutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 18 Jan 2012 16:24:40 -0000

Hello,

tests/syslogd.sh requires a writable /tmp.  In NixOS chroots (yeah,
again), there=E2=80=99s no /tmp; instead, build systems are expected to use
$TMPDIR.

The problem is that $TMPDIR is a loooong file name, which is an issue
for socket paths.

The workaround I=E2=80=99ve used in Guile is to cd $TMPDIR, create ./my-soc=
ket,
and use that.

Would it be acceptable for you?

Thanks,
Ludo=E2=80=99.


From MAILER-DAEMON Wed Jan 18 12:15:15 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1RnZ6R-0001wN-Mv
	for mharc-bug-inetutils@gnu.org; Wed, 18 Jan 2012 12:15:15 -0500
Received: from eggs.gnu.org ([140.186.70.92]:51714)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mats.andersson@gisladisker.se>) id 1RnZ6M-0001wE-OX
	for bug-inetutils@gnu.org; Wed, 18 Jan 2012 12:15:14 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <mats.andersson@gisladisker.se>) id 1RnZ6I-0003uF-Fd
	for bug-inetutils@gnu.org; Wed, 18 Jan 2012 12:15:10 -0500
Received: from ch-smtp05.sth.basefarm.net ([80.76.153.6]:48997)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mats.andersson@gisladisker.se>)
	id 1RnZ6F-0003qx-Tw; Wed, 18 Jan 2012 12:15:04 -0500
Received: from c83-253-249-30.bredband.comhem.se ([83.253.249.30]:59566
	helo=aun)
	by ch-smtp05.sth.basefarm.net with esmtps (TLSv1:AES256-SHA:256)
	(Exim 4.76) (envelope-from <mats.andersson@gisladisker.se>)
	id 1RnZ5m-0004uc-Hw; Wed, 18 Jan 2012 18:14:39 +0100
Received: from meand by aun with local (Exim 4.69)
	(envelope-from <mats.andersson@gisladisker.se>)
	id 1RnZ5c-00051o-J9; Wed, 18 Jan 2012 18:14:25 +0100
Date: Wed, 18 Jan 2012 18:14:24 +0100
From: Mats Erik Andersson <gnu@gisladisker.se>
To: Ludovic =?iso-8859-1?Q?Court=E8s?= <ludo@gnu.org>
Message-ID: <20120118171424.GA19271@mea.homelinux.org>
References: <87fwfdvv0n.fsf@gnu.org>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <87fwfdvv0n.fsf@gnu.org>
User-Agent: Mutt/1.5.18 (2008-05-17)
X-SA-Exim-Connect-IP: <locally generated>
X-SA-Exim-Rcpt-To: ludo@gnu.org, bug-inetutils@gnu.org
X-SA-Exim-Mail-From: mats.andersson@gisladisker.se
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-SA-Exim-Version: 4.2.1 (built Wed, 25 Jun 2008 17:14:11 +0000)
X-SA-Exim-Scanned: Yes (on aun)
X-Originating-IP: 83.253.249.30
X-Scan-Result: No virus found in message 1RnZ5m-0004uc-Hw.
X-Scan-Signature: ch-smtp05.sth.basefarm.net 1RnZ5m-0004uc-Hw
	3ebf5b30fbea581d8e51eee068170f11
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 80.76.153.6
Cc: bug-inetutils@gnu.org
Subject: Re: [bug-inetutils] tests/syslogd.sh and /tmp
X-BeenThere: bug-inetutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Bug reports for the GNU Internet utilities <bug-inetutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-inetutils>
List-Post: <mailto:bug-inetutils@gnu.org>
List-Help: <mailto:bug-inetutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 18 Jan 2012 17:15:14 -0000

onsdag den 18 januari 2012 klockan 17:24 skrev Ludovic Courtès detta:
> Hello,
> 
> tests/syslogd.sh requires a writable /tmp.  In NixOS chroots (yeah,
> again), there???s no /tmp; instead, build systems are expected to use
> $TMPDIR.
> 
> The problem is that $TMPDIR is a loooong file name, which is an issue
> for socket paths.
> 
> The workaround I???ve used in Guile is to cd $TMPDIR, create ./my-socket,
> and use that.
> 
> Would it be acceptable for you?

Hardly! The use of "/tmp/" is there exactly to take care of well defined
paths of reasonable length. The failure to provide a writeable "/tmp/"
is as close to a perverted system I can think of.

It is intentional that the test script is built to test that the expected
socket name length is functional. The only solution would be to insert
an optional variable that would disable the corresponding subtest, but
run it for every POSIX system, which NixOS clearly does not bother even
to approximate.

On behalf of GNU Inetutils,
  Mats Erik Andersson 


From MAILER-DAEMON Wed Jan 18 16:36:13 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1RndAz-00006p-R8
	for mharc-bug-inetutils@gnu.org; Wed, 18 Jan 2012 16:36:13 -0500
Received: from eggs.gnu.org ([140.186.70.92]:51042)
	by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <ams@gnu.org>)
	id 1RndAy-00006j-32
	for bug-inetutils@gnu.org; Wed, 18 Jan 2012 16:36:13 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <ams@gnu.org>) id 1RndAw-0008W6-OQ
	for bug-inetutils@gnu.org; Wed, 18 Jan 2012 16:36:11 -0500
Received: from fencepost.gnu.org ([140.186.70.10]:40254)
	by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ams@gnu.org>)
	id 1RndAw-0008W2-Mw
	for bug-inetutils@gnu.org; Wed, 18 Jan 2012 16:36:10 -0500
Received: from ams by fencepost.gnu.org with local (Exim 4.71)
	(envelope-from <ams@gnu.org>)
	id 1RndAv-0004BR-5p; Wed, 18 Jan 2012 16:36:09 -0500
Date: Wed, 18 Jan 2012 16:36:09 -0500
Message-Id: <E1RndAv-0004BR-5p@fencepost.gnu.org>
From: ams@gnu.org (Alfred M. Szmidt)
To: Mats Erik Andersson <gnu@gisladisker.se>
In-reply-to: <20120118171424.GA19271@mea.homelinux.org> (message from Mats
	Erik Andersson on Wed, 18 Jan 2012 18:14:24 +0100)
References: <87fwfdvv0n.fsf@gnu.org> <20120118171424.GA19271@mea.homelinux.org>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 140.186.70.10
Cc: bug-inetutils@gnu.org, ludo@gnu.org
Subject: Re: [bug-inetutils] tests/syslogd.sh and /tmp
X-BeenThere: bug-inetutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: ams@gnu.org
List-Id: Bug reports for the GNU Internet utilities <bug-inetutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-inetutils>
List-Post: <mailto:bug-inetutils@gnu.org>
List-Help: <mailto:bug-inetutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 18 Jan 2012 21:36:13 -0000

   > tests/syslogd.sh requires a writable /tmp.  In NixOS chroots
   > (yeah, again), there's no /tmp; instead, build systems are
   > expected to use $TMPDIR.
   > 
   > The problem is that $TMPDIR is a loooong file name, which is an
   > issue for socket paths.
   > 
   > The workaround I???ve used in Guile is to cd $TMPDIR, create
   > ./my-socket, and use that.
   > 
   > Would it be acceptable for you?

   Hardly! The use of "/tmp/" is there exactly to take care of well
   defined paths of reasonable length. The failure to provide a
   writeable "/tmp/" is as close to a perverted system I can think of.

   It is intentional that the test script is built to test that the
   expected socket name length is functional. The only solution would
   be to insert an optional variable that would disable the
   corresponding subtest, but run it for every POSIX system, which
   NixOS clearly does not bother even to approximate.

I am inclined to agree with both of you.  /tmp is from IEEE
1003.1-2001, but IEEE 1003.1-2004 and later recommend using $TMPDIR.
So in that sense, NixOS is indeed broken, IEEE 1003.1-2001 is not that
old, and more systems follow it that the 2004 or later editions.

The part where I'm confused is why "cat $TMPDIR/FILE" (*) (or similar)
does not work on NixOS, but "cd $TMPDIR; cat FILE" (**) does.  Is it
because some disreprency between ARG_MAX and PATH_MAX?  I.e. when
doing (*) you hit the ARG_MAX; but doing (**) you don't; even though
in both cases the file name fits in PATH_MAX?

PS.  I might be wrong about the exact IEEE 1003.1 revision, but I know
that recent enough revisions had /tmp; but later did prefer $TMPDIR.


From MAILER-DAEMON Wed Jan 18 16:46:38 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1RndL4-0002xA-FV
	for mharc-bug-inetutils@gnu.org; Wed, 18 Jan 2012 16:46:38 -0500
Received: from eggs.gnu.org ([140.186.70.92]:36208)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <ludo@gnu.org>) id 1RndL2-0002x3-6X
	for bug-inetutils@gnu.org; Wed, 18 Jan 2012 16:46:37 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <ludo@gnu.org>) id 1RndL1-0002AY-4f
	for bug-inetutils@gnu.org; Wed, 18 Jan 2012 16:46:36 -0500
Received: from mail1-relais-roc.national.inria.fr ([192.134.164.82]:13204)
	by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@gnu.org>)
	id 1RndL1-0002AO-0F
	for bug-inetutils@gnu.org; Wed, 18 Jan 2012 16:46:35 -0500
X-IronPort-AV: E=Sophos;i="4.71,531,1320620400"; d="scan'208";a="140445232"
Received: from reverse-83.fdn.fr (HELO pluto) ([80.67.176.83])
	by mail1-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES128-SHA;
	18 Jan 2012 22:46:33 +0100
From: ludo@gnu.org (Ludovic =?iso-8859-1?Q?Court=E8s?=)
To: Mats Erik Andersson <gnu@gisladisker.se>
References: <87fwfdvv0n.fsf@gnu.org> <20120118171424.GA19271@mea.homelinux.org>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: 29 =?iso-8859-1?Q?Niv=F4se?= an 220 de la
	=?iso-8859-1?Q?R=E9volution?=
X-PGP-Key-ID: 0xEA52ECF4
X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc
X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA  D15D 77DD 95E2 EA52 ECF4
X-OS: x86_64-unknown-linux-gnu
Date: Wed, 18 Jan 2012 22:46:32 +0100
In-Reply-To: <20120118171424.GA19271@mea.homelinux.org> (Mats Erik Andersson's
	message of "Wed, 18 Jan 2012 18:14:24 +0100")
Message-ID: <87pqegsmyv.fsf@gnu.org>
User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.90 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 192.134.164.82
Cc: bug-inetutils@gnu.org
Subject: Re: [bug-inetutils] tests/syslogd.sh and /tmp
X-BeenThere: bug-inetutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Bug reports for the GNU Internet utilities <bug-inetutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-inetutils>
List-Post: <mailto:bug-inetutils@gnu.org>
List-Help: <mailto:bug-inetutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 18 Jan 2012 21:46:37 -0000

Hello,

Mats Erik Andersson <gnu@gisladisker.se> skribis:

> but
> run it for every POSIX system, which NixOS clearly does not bother even
> to approximate.

Thank-you-very-much, but NixOS happens to be the name of a *GNU/Linux* dist=
ro.

Ludo=E2=80=99.


From MAILER-DAEMON Wed Jan 18 16:51:12 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1RndPU-0003Mu-0r
	for mharc-bug-inetutils@gnu.org; Wed, 18 Jan 2012 16:51:12 -0500
Received: from eggs.gnu.org ([140.186.70.92]:56645)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <ludo@gnu.org>) id 1RndPQ-0003LT-Fe
	for bug-inetutils@gnu.org; Wed, 18 Jan 2012 16:51:09 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <ludo@gnu.org>) id 1RndPP-0002s0-Dp
	for bug-inetutils@gnu.org; Wed, 18 Jan 2012 16:51:08 -0500
Received: from mail1-relais-roc.national.inria.fr ([192.134.164.82]:10379)
	by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@gnu.org>)
	id 1RndPP-0002rp-3y; Wed, 18 Jan 2012 16:51:07 -0500
X-IronPort-AV: E=Sophos;i="4.71,531,1320620400"; d="scan'208";a="140445663"
Received: from reverse-83.fdn.fr (HELO pluto) ([80.67.176.83])
	by mail1-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES128-SHA;
	18 Jan 2012 22:51:05 +0100
From: ludo@gnu.org (Ludovic =?iso-8859-1?Q?Court=E8s?=)
To: ams@gnu.org
References: <87fwfdvv0n.fsf@gnu.org> <20120118171424.GA19271@mea.homelinux.org>
	<E1RndAv-0004BR-5p@fencepost.gnu.org>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: 29 =?iso-8859-1?Q?Niv=F4se?= an 220 de la
	=?iso-8859-1?Q?R=E9volution?=
X-PGP-Key-ID: 0xEA52ECF4
X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc
X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA  D15D 77DD 95E2 EA52 ECF4
X-OS: x86_64-unknown-linux-gnu
Date: Wed, 18 Jan 2012 22:51:04 +0100
In-Reply-To: <E1RndAv-0004BR-5p@fencepost.gnu.org> (Alfred M. Szmidt's message
	of "Wed, 18 Jan 2012 16:36:09 -0500")
Message-ID: <877h0osmrb.fsf@gnu.org>
User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.90 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 192.134.164.82
Cc: Mats Erik Andersson <gnu@gisladisker.se>, bug-inetutils@gnu.org
Subject: Re: [bug-inetutils] tests/syslogd.sh and /tmp
X-BeenThere: bug-inetutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Bug reports for the GNU Internet utilities <bug-inetutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-inetutils>
List-Post: <mailto:bug-inetutils@gnu.org>
List-Help: <mailto:bug-inetutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 18 Jan 2012 21:51:09 -0000

Hello,

ams@gnu.org (Alfred M. Szmidt) skribis:

> I am inclined to agree with both of you.  /tmp is from IEEE
> 1003.1-2001, but IEEE 1003.1-2004 and later recommend using $TMPDIR.
> So in that sense, NixOS is indeed broken, IEEE 1003.1-2001 is not that
> old, and more systems follow it that the 2004 or later editions.

IOW, one is free not to honor $TMPDIR, but that is bad style.

> The part where I'm confused is

[...]

I=E2=80=99m just saying that an obvious way to work around the silly socket=
 name
length limitation is to cd somewhere, and then use a relative path, like
./my-socket.

BTW, syslogd.sh says #!/bin/sh, but it seems to use non-POSIX
extensions, no?

Thanks,
Ludo=E2=80=99.


From MAILER-DAEMON Wed Jan 18 17:13:44 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1RndlI-0005Ul-VZ
	for mharc-bug-inetutils@gnu.org; Wed, 18 Jan 2012 17:13:44 -0500
Received: from eggs.gnu.org ([140.186.70.92]:35912)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mats.andersson@gisladisker.se>) id 1RndlG-0005TS-PQ
	for bug-inetutils@gnu.org; Wed, 18 Jan 2012 17:13:43 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <mats.andersson@gisladisker.se>) id 1RndlF-0006Ji-Sz
	for bug-inetutils@gnu.org; Wed, 18 Jan 2012 17:13:42 -0500
Received: from ch-smtp05.sth.basefarm.net ([80.76.153.6]:41174)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mats.andersson@gisladisker.se>)
	id 1RndlD-0006F3-TR; Wed, 18 Jan 2012 17:13:40 -0500
Received: from c83-253-249-30.bredband.comhem.se ([83.253.249.30]:37416
	helo=aun)
	by ch-smtp05.sth.basefarm.net with esmtps (TLSv1:AES256-SHA:256)
	(Exim 4.76) (envelope-from <mats.andersson@gisladisker.se>)
	id 1Rndke-0003Of-HU; Wed, 18 Jan 2012 23:13:05 +0100
Received: from meand by aun with local (Exim 4.69)
	(envelope-from <mats.andersson@gisladisker.se>)
	id 1Rndkc-0005jO-US; Wed, 18 Jan 2012 23:13:03 +0100
Date: Wed, 18 Jan 2012 23:13:02 +0100
To: Ludovic =?iso-8859-1?Q?Court=E8s?= <ludo@gnu.org>
Message-ID: <20120118221302.GA21981@mea.homelinux.org>
References: <87fwfdvv0n.fsf@gnu.org> <20120118171424.GA19271@mea.homelinux.org>
	<87pqegsmyv.fsf@gnu.org>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <87pqegsmyv.fsf@gnu.org>
User-Agent: Mutt/1.5.18 (2008-05-17)
From: Mats Erik Andersson <mats.andersson@gisladisker.se>
X-SA-Exim-Connect-IP: <locally generated>
X-SA-Exim-Rcpt-To: ludo@gnu.org, bug-inetutils@gnu.org
X-SA-Exim-Mail-From: mats.andersson@gisladisker.se
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-SA-Exim-Version: 4.2.1 (built Wed, 25 Jun 2008 17:14:11 +0000)
X-SA-Exim-Scanned: Yes (on aun)
X-Originating-IP: 83.253.249.30
X-Scan-Result: No virus found in message 1Rndke-0003Of-HU.
X-Scan-Signature: ch-smtp05.sth.basefarm.net 1Rndke-0003Of-HU
	0f1c0917d7c1c740de569694531c2225
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 80.76.153.6
Cc: bug-inetutils@gnu.org
Subject: Re: [bug-inetutils] tests/syslogd.sh and /tmp
X-BeenThere: bug-inetutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Bug reports for the GNU Internet utilities <bug-inetutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-inetutils>
List-Post: <mailto:bug-inetutils@gnu.org>
List-Help: <mailto:bug-inetutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 18 Jan 2012 22:13:43 -0000

onsdag den 18 januari 2012 klockan 22:46 skrev Ludovic Courtès detta:
> Hello,
> 
> Mats Erik Andersson <gnu@gisladisker.se> skribis:
> 
> > but
> > run it for every POSIX system, which NixOS clearly does not bother even
> > to approximate.
> 
> Thank-you-very-much, but NixOS happens to be the name of a *GNU/Linux* distro.

In that case,  the elimination of "/tmp/" is in violation of FHS,
thus is an equally absurd setting. Personally I find it a riddle
how NixOS is able to test anything reliably when not providing
a writable "/tmp/". There must be thousands of software archives
that need such a resource. The standard, as far as I recall, is that
"/tmp/" must be provided as fall-back for any software that does
not acknowledge the use of an environmental variable TMPDIR.


From MAILER-DAEMON Wed Jan 18 17:41:44 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1RneCO-0008JP-FU
	for mharc-bug-inetutils@gnu.org; Wed, 18 Jan 2012 17:41:44 -0500
Received: from eggs.gnu.org ([140.186.70.92]:52339)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <ludo@gnu.org>) id 1RneCM-0008JG-Cn
	for bug-inetutils@gnu.org; Wed, 18 Jan 2012 17:41:43 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <ludo@gnu.org>) id 1RneCL-0002Gq-6Z
	for bug-inetutils@gnu.org; Wed, 18 Jan 2012 17:41:42 -0500
Received: from mail4-relais-sop.national.inria.fr ([192.134.164.105]:3226)
	by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@gnu.org>)
	id 1RneCL-0002Gg-1k
	for bug-inetutils@gnu.org; Wed, 18 Jan 2012 17:41:41 -0500
X-IronPort-AV: E=Sophos;i="4.71,532,1320620400"; d="scan'208";a="127973589"
Received: from reverse-83.fdn.fr (HELO pluto) ([80.67.176.83])
	by mail4-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES128-SHA;
	18 Jan 2012 23:41:38 +0100
From: ludo@gnu.org (Ludovic =?iso-8859-1?Q?Court=E8s?=)
To: Mats Erik Andersson <mats.andersson@gisladisker.se>
References: <87fwfdvv0n.fsf@gnu.org>
	<20120118171424.GA19271@mea.homelinux.org> <87pqegsmyv.fsf@gnu.org>
	<20120118221302.GA21981@mea.homelinux.org>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: 29 =?iso-8859-1?Q?Niv=F4se?= an 220 de la
	=?iso-8859-1?Q?R=E9volution?=
X-PGP-Key-ID: 0xEA52ECF4
X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc
X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA  D15D 77DD 95E2 EA52 ECF4
X-OS: x86_64-unknown-linux-gnu
Date: Wed, 18 Jan 2012 23:41:37 +0100
In-Reply-To: <20120118221302.GA21981@mea.homelinux.org> (Mats Erik Andersson's
	message of "Wed, 18 Jan 2012 23:13:02 +0100")
Message-ID: <87hazsr5um.fsf@gnu.org>
User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.90 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 192.134.164.105
Cc: bug-inetutils@gnu.org
Subject: Re: [bug-inetutils] tests/syslogd.sh and /tmp
X-BeenThere: bug-inetutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Bug reports for the GNU Internet utilities <bug-inetutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-inetutils>
List-Post: <mailto:bug-inetutils@gnu.org>
List-Help: <mailto:bug-inetutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 18 Jan 2012 22:41:43 -0000

Mats Erik Andersson <mats.andersson@gisladisker.se> skribis:

> onsdag den 18 januari 2012 klockan 22:46 skrev Ludovic Court=C3=A8s detta:
>> Hello,
>>=20
>> Mats Erik Andersson <gnu@gisladisker.se> skribis:
>>=20
>> > but
>> > run it for every POSIX system, which NixOS clearly does not bother even
>> > to approximate.
>>=20
>> Thank-you-very-much, but NixOS happens to be the name of a *GNU/Linux* d=
istro.
>
> In that case,  the elimination of "/tmp/" is in violation of FHS,

As I said, we=E2=80=99re talking about the build environment within chroots,
which has nothing to do with the actual user environment.

Ludo=E2=80=99.


From MAILER-DAEMON Wed Jan 18 17:43:37 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1RneED-0008Mp-Qt
	for mharc-bug-inetutils@gnu.org; Wed, 18 Jan 2012 17:43:37 -0500
Received: from eggs.gnu.org ([140.186.70.92]:52500)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mats.andersson@gisladisker.se>) id 1RneEB-0008MZ-Pb
	for bug-inetutils@gnu.org; Wed, 18 Jan 2012 17:43:36 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <mats.andersson@gisladisker.se>) id 1RneEA-0002M5-RD
	for bug-inetutils@gnu.org; Wed, 18 Jan 2012 17:43:35 -0500
Received: from ch-smtp05.sth.basefarm.net ([80.76.153.6]:58095)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mats.andersson@gisladisker.se>) id 1RneEA-0002M1-HR
	for bug-inetutils@gnu.org; Wed, 18 Jan 2012 17:43:34 -0500
Received: from c83-253-249-30.bredband.comhem.se ([83.253.249.30]:51746
	helo=aun)
	by ch-smtp05.sth.basefarm.net with esmtps (TLSv1:AES256-SHA:256)
	(Exim 4.76) (envelope-from <mats.andersson@gisladisker.se>)
	id 1RneDZ-0003C3-GT
	for bug-inetutils@gnu.org; Wed, 18 Jan 2012 23:42:58 +0100
Received: from meand by aun with local (Exim 4.69)
	(envelope-from <mats.andersson@gisladisker.se>) id 1RneDX-0005p7-K3
	for bug-inetutils@gnu.org; Wed, 18 Jan 2012 23:42:56 +0100
Date: Wed, 18 Jan 2012 23:42:55 +0100
To: bug-inetutils@gnu.org
Message-ID: <20120118224255.GA22295@mea.homelinux.org>
References: <87fwfdvv0n.fsf@gnu.org> <20120118171424.GA19271@mea.homelinux.org>
	<E1RndAv-0004BR-5p@fencepost.gnu.org>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <E1RndAv-0004BR-5p@fencepost.gnu.org>
User-Agent: Mutt/1.5.18 (2008-05-17)
From: Mats Erik Andersson <mats.andersson@gisladisker.se>
X-SA-Exim-Connect-IP: <locally generated>
X-SA-Exim-Rcpt-To: bug-inetutils@gnu.org
X-SA-Exim-Mail-From: mats.andersson@gisladisker.se
Content-Type: text/plain; charset=us-ascii
X-SA-Exim-Version: 4.2.1 (built Wed, 25 Jun 2008 17:14:11 +0000)
X-SA-Exim-Scanned: Yes (on aun)
X-Originating-IP: 83.253.249.30
X-Scan-Result: No virus found in message 1RneDZ-0003C3-GT.
X-Scan-Signature: ch-smtp05.sth.basefarm.net 1RneDZ-0003C3-GT
	7a500b2645cffb2ca456b7c8d0503502
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 80.76.153.6
Subject: Re: [bug-inetutils] tests/syslogd.sh and /tmp
X-BeenThere: bug-inetutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Bug reports for the GNU Internet utilities <bug-inetutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-inetutils>
List-Post: <mailto:bug-inetutils@gnu.org>
List-Help: <mailto:bug-inetutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 18 Jan 2012 22:43:37 -0000

onsdag den 18 januari 2012 klockan 16:36 skrev Alfred M. Szmidt detta:
> I am inclined to agree with both of you.  /tmp is from IEEE
> 1003.1-2001, but IEEE 1003.1-2004 and later recommend using $TMPDIR.
> So in that sense, NixOS is indeed broken, IEEE 1003.1-2001 is not that
> old, and more systems follow it that the 2004 or later editions.
> 
> The part where I'm confused is why "cat $TMPDIR/FILE" (*) (or similar)
> does not work on NixOS, but "cd $TMPDIR; cat FILE" (**) does.  Is it
> because some disreprency between ARG_MAX and PATH_MAX?  I.e. when
> doing (*) you hit the ARG_MAX; but doing (**) you don't; even though
> in both cases the file name fits in PATH_MAX?

Let me remind all that the crucial limit here is

   sizeof (sockaddr_un.sun_path)

which is 108 (Glibc and Solaris) or 104 (BSD).


From MAILER-DAEMON Wed Jan 18 20:21:55 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1RnghP-0000fW-B4
	for mharc-bug-inetutils@gnu.org; Wed, 18 Jan 2012 20:21:55 -0500
Received: from eggs.gnu.org ([140.186.70.92]:59905)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mats.andersson@gisladisker.se>) id 1RnghM-0000eF-7E
	for bug-inetutils@gnu.org; Wed, 18 Jan 2012 20:21:53 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <mats.andersson@gisladisker.se>) id 1RnghK-0002tw-VZ
	for bug-inetutils@gnu.org; Wed, 18 Jan 2012 20:21:52 -0500
Received: from ch-smtp05.sth.basefarm.net ([80.76.153.6]:46343)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mats.andersson@gisladisker.se>)
	id 1RnghI-0002tb-Er; Wed, 18 Jan 2012 20:21:49 -0500
Received: from c83-253-249-30.bredband.comhem.se ([83.253.249.30]:51359
	helo=aun)
	by ch-smtp05.sth.basefarm.net with esmtps (TLSv1:AES256-SHA:256)
	(Exim 4.76) (envelope-from <mats.andersson@gisladisker.se>)
	id 1Rngh7-0007Vj-Ij; Thu, 19 Jan 2012 02:21:39 +0100
Received: from meand by aun with local (Exim 4.69)
	(envelope-from <mats.andersson@gisladisker.se>)
	id 1Rngh6-0006BG-7o; Thu, 19 Jan 2012 02:21:37 +0100
Date: Thu, 19 Jan 2012 02:21:36 +0100
To: Ludovic =?iso-8859-1?Q?Court=E8s?= <ludo@gnu.org>
Message-ID: <20120119012136.GA23632@mea.homelinux.org>
References: <87fwfdvv0n.fsf@gnu.org> <20120118171424.GA19271@mea.homelinux.org>
	<87pqegsmyv.fsf@gnu.org> <20120118221302.GA21981@mea.homelinux.org>
	<87hazsr5um.fsf@gnu.org>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <87hazsr5um.fsf@gnu.org>
User-Agent: Mutt/1.5.18 (2008-05-17)
From: Mats Erik Andersson <mats.andersson@gisladisker.se>
X-SA-Exim-Connect-IP: <locally generated>
X-SA-Exim-Rcpt-To: ludo@gnu.org, bug-inetutils@gnu.org
X-SA-Exim-Mail-From: mats.andersson@gisladisker.se
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-SA-Exim-Version: 4.2.1 (built Wed, 25 Jun 2008 17:14:11 +0000)
X-SA-Exim-Scanned: Yes (on aun)
X-Originating-IP: 83.253.249.30
X-Scan-Result: No virus found in message 1Rngh7-0007Vj-Ij.
X-Scan-Signature: ch-smtp05.sth.basefarm.net 1Rngh7-0007Vj-Ij
	3561f632fce5e7fe91383a98eafa4691
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 80.76.153.6
Cc: bug-inetutils@gnu.org
Subject: Re: [bug-inetutils] tests/syslogd.sh and /tmp
X-BeenThere: bug-inetutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Bug reports for the GNU Internet utilities <bug-inetutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-inetutils>
List-Post: <mailto:bug-inetutils@gnu.org>
List-Help: <mailto:bug-inetutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 19 Jan 2012 01:21:53 -0000

onsdag den 18 januari 2012 klockan 23:41 skrev Ludovic Courtès detta:
> Mats Erik Andersson <mats.andersson@gisladisker.se> skribis:
> 
> > onsdag den 18 januari 2012 klockan 22:46 skrev Ludovic Courtès detta:
> >> Hello,
> >> 
> >> Mats Erik Andersson <gnu@gisladisker.se> skribis:
> >> 
> >> > but
> >> > run it for every POSIX system, which NixOS clearly does not bother even
> >> > to approximate.
> >> 
> >> Thank-you-very-much, but NixOS happens to be the name of a *GNU/Linux* distro.
> >
> > In that case,  the elimination of "/tmp/" is in violation of FHS,
> 
> As I said, we???re talking about the build environment within chroots,
> which has nothing to do with the actual user environment.

And the chroot should/must provide "/tmp/"? No?

Another issue:

   logger -h /unix/sockets/are/rooted/paths   "Tell the world"

Thus the path MUST begin with a slash in order that iu-logger(1)
be able to recognize a UNIX socket name. Can you make me believe
that your $TMPDIR is less that, say, 95 characters, then the test
setup could be refined, while disabling the path length test in
all other cases.


From MAILER-DAEMON Thu Jan 19 03:02:14 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Rnmwo-0002Nn-Nz
	for mharc-bug-inetutils@gnu.org; Thu, 19 Jan 2012 03:02:14 -0500
Received: from eggs.gnu.org ([140.186.70.92]:37298)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <simon@josefsson.org>) id 1Rnmwg-0002MM-38
	for bug-inetutils@gnu.org; Thu, 19 Jan 2012 03:02:11 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <simon@josefsson.org>) id 1RnmwY-00006Y-CT
	for bug-inetutils@gnu.org; Thu, 19 Jan 2012 03:02:06 -0500
Received: from static-213-115-179-173.sme.bredbandsbolaget.se
	([213.115.179.173]:58461 helo=yxa-v.extundo.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <simon@josefsson.org>)
	id 1RnmwW-00005p-Cx; Thu, 19 Jan 2012 03:01:56 -0500
Received: from latte.josefsson.org
	(static-213-115-179-130.sme.bredbandsbolaget.se [213.115.179.130])
	(authenticated bits=0)
	by yxa-v.extundo.com (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id
	q0J81kIu028624
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT);
	Thu, 19 Jan 2012 09:01:48 +0100
From: Simon Josefsson <simon@josefsson.org>
To: ludo@gnu.org (Ludovic =?iso-8859-1?Q?Court=E8s?=)
References: <87fwfdvv0n.fsf@gnu.org>
OpenPGP: id=B565716F; url=http://josefsson.org/key.txt
X-Hashcash: 1:22:120119:bug-inetutils@gnu.org::vfyA5LAXpb3JpR3K:2V9O
X-Hashcash: 1:22:120119:ludo@gnu.org::PtniqHZr3C3N2wU5:9spf
Date: Thu, 19 Jan 2012 09:01:46 +0100
In-Reply-To: <87fwfdvv0n.fsf@gnu.org> ("Ludovic
	\=\?iso-8859-1\?Q\?Court\=E8s\?\=
	\=\?iso-8859-1\?Q\?\=22's\?\= message of "Wed, 18
	Jan 2012 17:24:24 +0100")
Message-ID: <874nvs86j9.fsf@latte.josefsson.org>
User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.92 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
X-Virus-Scanned: clamav-milter 0.97.3 at yxa-v
X-Virus-Status: Clean
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by yxa-v.extundo.com id
	q0J81kIu028624
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1)
X-Received-From: 213.115.179.173
Cc: bug-inetutils@gnu.org
Subject: Re: [bug-inetutils] tests/syslogd.sh and /tmp
X-BeenThere: bug-inetutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Bug reports for the GNU Internet utilities <bug-inetutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-inetutils>
List-Post: <mailto:bug-inetutils@gnu.org>
List-Help: <mailto:bug-inetutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 19 Jan 2012 08:02:11 -0000

ludo@gnu.org (Ludovic Court=C3=A8s) writes:

> Hello,
>
> tests/syslogd.sh requires a writable /tmp.

Looking further at that test, it seems buggy from another point of view
as well: the filenames are prone to a race condition when two or more
InetUtils instances is built at the same time.  The filenames used are:

# This good name base consumes twentythree chracters.
IU_GOOD_BASE=3D/tmp/$(date +%y-%m-%d)_socket_iu
# Add a single character to violate the size condition.
IU_BAD_BASE=3D/tmp/X$(date +%y-%m-%d)_socket_iu

Further, having predictable filenames has often been used by non-root
users to mount a privilege-escalation attack (just wait until the root
user runs the script), but I haven't reviewed the script if it has this
problem as well.

Normal practice is to use 'mktemp'.

> The workaround I=E2=80=99ve used in Guile is to cd $TMPDIR, create ./my=
-socket,
> and use that.

I would prefer a mktemp+cd approach.  It is the most secure, follows
best practices, and is the most portable.

/Simon


From MAILER-DAEMON Thu Jan 19 04:05:36 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Rnnw8-0007tR-TI
	for mharc-bug-inetutils@gnu.org; Thu, 19 Jan 2012 04:05:36 -0500
Received: from eggs.gnu.org ([140.186.70.92]:45064)
	by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <ams@gnu.org>)
	id 1Rnnw2-0007rT-M3
	for bug-inetutils@gnu.org; Thu, 19 Jan 2012 04:05:34 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <ams@gnu.org>) id 1Rnnvx-0001uJ-2T
	for bug-inetutils@gnu.org; Thu, 19 Jan 2012 04:05:30 -0500
Received: from fencepost.gnu.org ([140.186.70.10]:54189)
	by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ams@gnu.org>)
	id 1Rnnvw-0001uF-S3
	for bug-inetutils@gnu.org; Thu, 19 Jan 2012 04:05:24 -0500
Received: from ams by fencepost.gnu.org with local (Exim 4.71)
	(envelope-from <ams@gnu.org>)
	id 1Rnnvv-0007PN-Bt; Thu, 19 Jan 2012 04:05:23 -0500
Date: Thu, 19 Jan 2012 04:05:23 -0500
Message-Id: <E1Rnnvv-0007PN-Bt@fencepost.gnu.org>
From: ams@gnu.org (Alfred M. Szmidt)
To: ludo@gnu.org (Ludovic CourtÃ¨s)
In-reply-to: <877h0osmrb.fsf@gnu.org> (ludo@gnu.org)
References: <87fwfdvv0n.fsf@gnu.org> <20120118171424.GA19271@mea.homelinux.org>
	<E1RndAv-0004BR-5p@fencepost.gnu.org> <877h0osmrb.fsf@gnu.org>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 140.186.70.10
Cc: gnu@gisladisker.se, bug-inetutils@gnu.org
Subject: Re: [bug-inetutils] tests/syslogd.sh and /tmp
X-BeenThere: bug-inetutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: ams@gnu.org
List-Id: Bug reports for the GNU Internet utilities <bug-inetutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-inetutils>
List-Post: <mailto:bug-inetutils@gnu.org>
List-Help: <mailto:bug-inetutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 19 Jan 2012 09:05:34 -0000

Lets not argue about the issue, we should use TMPDIR over /tmp; or
mktemp.

   > The part where I'm confused is

   [...]

   Iâ€™m just saying that an obvious way to work around the silly socket
   name length limitation is to cd somewhere, and then use a relative
   path, like ./my-socket.

You didn't answer my question, I'm still curious as to _why_ this happens.

   BTW, syslogd.sh says #!/bin/sh, but it seems to use non-POSIX
   extensions, no?

What extentions do are you thinking of exactly?  I couldn't find
anything particular.  As a side note, and useless fact of the day,
there is no requirement by POSIX that /bin/sh is a POSIX shell though
that is what is traditional on unixoids.


From MAILER-DAEMON Thu Jan 19 04:10:45 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Rno17-0000Lw-Nv
	for mharc-bug-inetutils@gnu.org; Thu, 19 Jan 2012 04:10:45 -0500
Received: from eggs.gnu.org ([140.186.70.92]:45222)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <simon@josefsson.org>) id 1Rno12-0000FB-37
	for bug-inetutils@gnu.org; Thu, 19 Jan 2012 04:10:44 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <simon@josefsson.org>) id 1Rno0w-0002n4-Ii
	for bug-inetutils@gnu.org; Thu, 19 Jan 2012 04:10:40 -0500
Received: from static-213-115-179-173.sme.bredbandsbolaget.se
	([213.115.179.173]:58973 helo=yxa-v.extundo.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <simon@josefsson.org>)
	id 1Rno0f-0002kO-EF; Thu, 19 Jan 2012 04:10:18 -0500
Received: from latte.josefsson.org
	(static-213-115-179-130.sme.bredbandsbolaget.se [213.115.179.130])
	(authenticated bits=0)
	by yxa-v.extundo.com (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id
	q0J99qAm031538
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT);
	Thu, 19 Jan 2012 10:09:53 +0100
From: Simon Josefsson <simon@josefsson.org>
To: ams@gnu.org
References: <87fwfdvv0n.fsf@gnu.org> <20120118171424.GA19271@mea.homelinux.org>
	<E1RndAv-0004BR-5p@fencepost.gnu.org> <877h0osmrb.fsf@gnu.org>
	<E1Rnnvv-0007PN-Bt@fencepost.gnu.org>
OpenPGP: id=B565716F; url=http://josefsson.org/key.txt
X-Hashcash: 1:22:120119:ams@gnu.org::b39Dol8s94DV0C6n:2HVZ
X-Hashcash: 1:22:120119:gnu@gisladisker.se::WHQcuiLZ4UvOE8vA:4BL4
X-Hashcash: 1:22:120119:ludo@gnu.org::tx0VjeS/BZas8Ux9:KNAi
X-Hashcash: 1:22:120119:bug-inetutils@gnu.org::z+cBbU8pr2zfmzO+:jRWe
Date: Thu, 19 Jan 2012 10:09:52 +0100
In-Reply-To: <E1Rnnvv-0007PN-Bt@fencepost.gnu.org> (Alfred M. Szmidt's message
	of "Thu, 19 Jan 2012 04:05:23 -0500")
Message-ID: <87fwfc6otb.fsf@latte.josefsson.org>
User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.92 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Virus-Scanned: clamav-milter 0.97.3 at yxa-v
X-Virus-Status: Clean
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1)
X-Received-From: 213.115.179.173
Cc: gnu@gisladisker.se, bug-inetutils@gnu.org,
	Ludovic =?iso-8859-1?Q?Court=E8s?= <ludo@gnu.org>
Subject: Re: [bug-inetutils] tests/syslogd.sh and /tmp
X-BeenThere: bug-inetutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Bug reports for the GNU Internet utilities <bug-inetutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-inetutils>
List-Post: <mailto:bug-inetutils@gnu.org>
List-Help: <mailto:bug-inetutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 19 Jan 2012 09:10:44 -0000

ams@gnu.org (Alfred M. Szmidt) writes:

>    BTW, syslogd.sh says #!/bin/sh, but it seems to use non-POSIX
>    extensions, no?
>
> What extentions do are you thinking of exactly?  I couldn't find
> anything particular

I noticed the $((foo)) construct that, according to the Autoconf manual,
doesn't work on Solaris 10.  However I thought we had some positive
success on Solaris?

/Simon


From MAILER-DAEMON Thu Jan 19 04:24:06 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1RnoE2-0003LI-LK
	for mharc-bug-inetutils@gnu.org; Thu, 19 Jan 2012 04:24:06 -0500
Received: from eggs.gnu.org ([140.186.70.92]:37284)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mats.andersson@gisladisker.se>) id 1RnoDv-0003Jp-HV
	for bug-inetutils@gnu.org; Thu, 19 Jan 2012 04:24:05 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <mats.andersson@gisladisker.se>) id 1RnoDp-0004oJ-St
	for bug-inetutils@gnu.org; Thu, 19 Jan 2012 04:23:59 -0500
Received: from ch-smtp04.sth.basefarm.net ([80.76.153.5]:38382)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mats.andersson@gisladisker.se>)
	id 1RnoDn-0004o7-SL; Thu, 19 Jan 2012 04:23:52 -0500
Received: from c83-253-249-30.bredband.comhem.se ([83.253.249.30]:57043
	helo=aun)
	by ch-smtp04.sth.basefarm.net with esmtps (TLSv1:AES256-SHA:256)
	(Exim 4.76) (envelope-from <mats.andersson@gisladisker.se>)
	id 1RnoDe-0004Hm-D5; Thu, 19 Jan 2012 10:23:43 +0100
Received: from meand by aun with local (Exim 4.69)
	(envelope-from <mats.andersson@gisladisker.se>)
	id 1RnoDZ-0007SK-LA; Thu, 19 Jan 2012 10:23:39 +0100
Date: Thu, 19 Jan 2012 10:23:37 +0100
To: Ludovic =?iso-8859-1?Q?Court=E8s?= <ludo@gnu.org>
Message-ID: <20120119092337.GA28458@mea.homelinux.org>
References: <87fwfdvv0n.fsf@gnu.org> <874nvs86j9.fsf@latte.josefsson.org>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <874nvs86j9.fsf@latte.josefsson.org>
User-Agent: Mutt/1.5.18 (2008-05-17)
From: Mats Erik Andersson <mats.andersson@gisladisker.se>
X-SA-Exim-Connect-IP: <locally generated>
X-SA-Exim-Rcpt-To: ludo@gnu.org, bug-inetutils@gnu.org
X-SA-Exim-Mail-From: mats.andersson@gisladisker.se
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-SA-Exim-Version: 4.2.1 (built Wed, 25 Jun 2008 17:14:11 +0000)
X-SA-Exim-Scanned: Yes (on aun)
X-Originating-IP: 83.253.249.30
X-Scan-Result: No virus found in message 1RnoDe-0004Hm-D5.
X-Scan-Signature: ch-smtp04.sth.basefarm.net 1RnoDe-0004Hm-D5
	5fc3e2d6e3ba7a88c18d5e2c6e1d033f
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 80.76.153.5
Cc: bug-inetutils@gnu.org
Subject: Re: [bug-inetutils] tests/syslogd.sh and /tmp
X-BeenThere: bug-inetutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Bug reports for the GNU Internet utilities <bug-inetutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-inetutils>
List-Post: <mailto:bug-inetutils@gnu.org>
List-Help: <mailto:bug-inetutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 19 Jan 2012 09:24:05 -0000

Collecting all deficiencies.

torsdag den 19 januari 2012 klockan 09:01 skrev Simon Josefsson detta:
> ludo@gnu.org (Ludovic Courtès) writes:
> 
> > Hello,
> >
> > tests/syslogd.sh requires a writable /tmp.
> 
> Looking further at that test, it seems buggy from another point of view
> as well: the filenames are prone to a race condition when two or more
> InetUtils instances is built at the same time.  The filenames used are:
> 
> # This good name base consumes twentythree chracters.
> IU_GOOD_BASE=/tmp/$(date +%y-%m-%d)_socket_iu
> # Add a single character to violate the size condition.
> IU_BAD_BASE=/tmp/X$(date +%y-%m-%d)_socket_iu
> 
> Further, having predictable filenames has often been used by non-root
> users to mount a privilege-escalation attack (just wait until the root
> user runs the script), but I haven't reviewed the script if it has this
> problem as well.
> 
> Normal practice is to use 'mktemp'.
> 
> > The workaround I???ve used in Guile is to cd $TMPDIR, create ./my-socket,
> > and use that.
> 
> I would prefer a mktemp+cd approach.  It is the most secure, follows
> best practices, and is the most portable.

1. Replace $(( )) by `expr `.

2. logger(1) needs a rooted path "/this/starts/at/the/bottom".
   This rules out the "cd"-technique as viable work around.

3. The first illegal length is 109 or 105, depending on system.

4. Very long $TMPDIR must still be short enough to insert some
   random text in a template. Otherwise the subtest must be skipped.

Happy hacking,
  Mats E A


From MAILER-DAEMON Thu Jan 19 04:34:59 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1RnoOZ-0005Zv-Px
	for mharc-bug-inetutils@gnu.org; Thu, 19 Jan 2012 04:34:59 -0500
Received: from eggs.gnu.org ([140.186.70.92]:34155)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <simon@josefsson.org>) id 1RnoOU-0005ZN-4T
	for bug-inetutils@gnu.org; Thu, 19 Jan 2012 04:34:58 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <simon@josefsson.org>) id 1RnoOQ-0006Kc-4R
	for bug-inetutils@gnu.org; Thu, 19 Jan 2012 04:34:54 -0500
Received: from static-213-115-179-173.sme.bredbandsbolaget.se
	([213.115.179.173]:59240 helo=yxa-v.extundo.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <simon@josefsson.org>)
	id 1RnoOE-0006IH-2f; Thu, 19 Jan 2012 04:34:38 -0500
Received: from latte.josefsson.org
	(static-213-115-179-130.sme.bredbandsbolaget.se [213.115.179.130])
	(authenticated bits=0)
	by yxa-v.extundo.com (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id
	q0J9YKUt000316
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT);
	Thu, 19 Jan 2012 10:34:21 +0100
From: Simon Josefsson <simon@josefsson.org>
To: Mats Erik Andersson <mats.andersson@gisladisker.se>
References: <87fwfdvv0n.fsf@gnu.org> <874nvs86j9.fsf@latte.josefsson.org>
	<20120119092337.GA28458@mea.homelinux.org>
OpenPGP: id=B565716F; url=http://josefsson.org/key.txt
X-Hashcash: 1:22:120119:ludo@gnu.org::oHNNwVmPitagrXPs:1FRE
X-Hashcash: 1:22:120119:bug-inetutils@gnu.org::HUb+RP2qVgAPtBQJ:0aJF
X-Hashcash: 1:22:120119:mats.andersson@gisladisker.se::YZbKf73mprNSAnpU:B/dW
Date: Thu, 19 Jan 2012 10:34:15 +0100
In-Reply-To: <20120119092337.GA28458@mea.homelinux.org> (Mats Erik Andersson's
	message of "Thu, 19 Jan 2012 10:23:37 +0100")
Message-ID: <877h0o6noo.fsf@latte.josefsson.org>
User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.92 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Virus-Scanned: clamav-milter 0.97.3 at yxa-v
X-Virus-Status: Clean
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1)
X-Received-From: 213.115.179.173
Cc: bug-inetutils@gnu.org, Ludovic =?iso-8859-1?Q?Court=E8s?= <ludo@gnu.org>
Subject: Re: [bug-inetutils] tests/syslogd.sh and /tmp
X-BeenThere: bug-inetutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Bug reports for the GNU Internet utilities <bug-inetutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-inetutils>
List-Post: <mailto:bug-inetutils@gnu.org>
List-Help: <mailto:bug-inetutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 19 Jan 2012 09:34:58 -0000

Mats Erik Andersson <mats.andersson@gisladisker.se> writes:

> 1. Replace $(( )) by `expr `.

There is a trick in the autoconf manual to detect whether $(( )) works
and use it.  But maybe it is simpler and more readable to just use expr
instead, it is a well known shell programming idiom.

> 2. logger(1) needs a rooted path "/this/starts/at/the/bottom".
>    This rules out the "cd"-technique as viable work around.

Why is this? I'm assuming it is because the --host flag is overloaded to
also support Unix sockets.  However, perhaps a better solution would be
to implement the -u socket that my BSD logger tool uses for logging to a
Unix socket.  Then the --host flag would be entirely dedicated to
hostnames.  There would also be better compatibility with existing
'logger' on many people's systems.

/Simon


From MAILER-DAEMON Fri Jan 20 17:53:52 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1RoNLE-0000fr-2g
	for mharc-bug-inetutils@gnu.org; Fri, 20 Jan 2012 17:53:52 -0500
Received: from eggs.gnu.org ([140.186.70.92]:33621)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mats.andersson@gisladisker.se>) id 1RoNLB-0000eb-8W
	for bug-inetutils@gnu.org; Fri, 20 Jan 2012 17:53:50 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <mats.andersson@gisladisker.se>) id 1RoNLA-00013S-3L
	for bug-inetutils@gnu.org; Fri, 20 Jan 2012 17:53:49 -0500
Received: from ch-smtp04.sth.basefarm.net ([80.76.153.5]:42882)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mats.andersson@gisladisker.se>)
	id 1RoNL8-00013G-Ia; Fri, 20 Jan 2012 17:53:46 -0500
Received: from c83-253-249-30.bredband.comhem.se ([83.253.249.30]:40829
	helo=aun)
	by ch-smtp04.sth.basefarm.net with esmtps (TLSv1:AES256-SHA:256)
	(Exim 4.76) (envelope-from <mats.andersson@gisladisker.se>)
	id 1RoNKo-0001NM-FT; Fri, 20 Jan 2012 23:53:28 +0100
Received: from meand by aun with local (Exim 4.69)
	(envelope-from <mats.andersson@gisladisker.se>)
	id 1RoNKe-0004Ew-AG; Fri, 20 Jan 2012 23:53:18 +0100
Date: Fri, 20 Jan 2012 23:53:16 +0100
To: Ludovic =?iso-8859-1?Q?Court=E8s?= <ludo@gnu.org>
Message-ID: <20120120225316.GA15975@mea.homelinux.org>
References: <87fwfdvv0n.fsf@gnu.org> <874nvs86j9.fsf@latte.josefsson.org>
	<20120119092337.GA28458@mea.homelinux.org>
	<877h0o6noo.fsf@latte.josefsson.org>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <877h0o6noo.fsf@latte.josefsson.org>
User-Agent: Mutt/1.5.18 (2008-05-17)
From: Mats Erik Andersson <mats.andersson@gisladisker.se>
X-SA-Exim-Connect-IP: <locally generated>
X-SA-Exim-Rcpt-To: ludo@gnu.org, bug-inetutils@gnu.org
X-SA-Exim-Mail-From: mats.andersson@gisladisker.se
Content-Type: text/plain; charset=us-ascii
X-SA-Exim-Version: 4.2.1 (built Wed, 25 Jun 2008 17:14:11 +0000)
X-SA-Exim-Scanned: Yes (on aun)
X-Originating-IP: 83.253.249.30
X-Scan-Result: No virus found in message 1RoNKo-0001NM-FT.
X-Scan-Signature: ch-smtp04.sth.basefarm.net 1RoNKo-0001NM-FT
	6e9b96b2c77bfcef258a060b0a65a3bc
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 80.76.153.5
Cc: bug-inetutils@gnu.org
Subject: Re: [bug-inetutils] tests/syslogd.sh and /tmp
X-BeenThere: bug-inetutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Bug reports for the GNU Internet utilities <bug-inetutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-inetutils>
List-Post: <mailto:bug-inetutils@gnu.org>
List-Help: <mailto:bug-inetutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 20 Jan 2012 22:53:50 -0000

torsdag den 19 januari 2012 klockan 10:34 skrev Simon Josefsson detta:
> Mats Erik Andersson <mats.andersson@gisladisker.se> writes:
> 
> > 1. Replace $(( )) by `expr `.
> 
> There is a trick in the autoconf manual to detect whether $(( )) works
> and use it.  But maybe it is simpler and more readable to just use expr
> instead, it is a well known shell programming idiom.

I have now a pending patch of "tests/syslogd.sh" that covers this and
other issues not mentioned so for, also for variable length TMPDIR.
The code should work with SVR4 Bourne shell. The book by Peter Seebach
gave important advice. Thus the code should pass on Solaris 10 and 9.

Extraction of strings:

  $ count=5
  $ str=0123456789
  $ expr X"$str" : X"\(.\{0,$count\}\)"
  01234

This is portable to SVR3, possibly to V7! Thus helping me to satisfy NixOS.

> > 2. logger(1) needs a rooted path "/this/starts/at/the/bottom".
> >    This rules out the "cd"-technique as viable work around.
> 
> Why is this? I'm assuming it is because the --host flag is overloaded to
> also support Unix sockets.  However, perhaps a better solution would be
> to implement the -u socket that my BSD logger tool uses for logging to a
> Unix socket.  Then the --host flag would be entirely dedicated to
> hostnames.  There would also be better compatibility with existing
> 'logger' on many people's systems.

This is complex. syslogd is in fact executing `chroot("/")', via
the call `waitdaemon(0, 0, 30)'. Thus every UNIX socket name must
stay rooted at "/", be it relative to a chroot, or not.

You are correct in the observation that our logger also make this quirk.
In fact, the failure to follow the widespread use of "-u" has been and
remains one strong reason that the Debian package maintainer is not
including our logger even as "/usr/bin/iu-logger". Now that logger(1)
from util-linux has acquired INET sockets in its very most recent release,
our utility must be fully compliant to stand the slightest of chances.

As I mentioned, I have better portable and decidedly more robust version
of "tests/syslogd.sh" in writing. It defends against white space paths
and other attack mechanisms. Of course it stays based on our present
implementation of syslogd(8) and logger(1), not the desireable modification
of logger(1).

Regards,
  Mats


From MAILER-DAEMON Fri Jan 20 18:00:54 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1RoNS2-00017v-66
	for mharc-bug-inetutils@gnu.org; Fri, 20 Jan 2012 18:00:54 -0500
Received: from eggs.gnu.org ([140.186.70.92]:33036)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mats.andersson@gisladisker.se>) id 1RoNRz-00017o-Sd
	for bug-inetutils@gnu.org; Fri, 20 Jan 2012 18:00:52 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <mats.andersson@gisladisker.se>) id 1RoNRx-0001ly-NK
	for bug-inetutils@gnu.org; Fri, 20 Jan 2012 18:00:51 -0500
Received: from ch-smtp05.sth.basefarm.net ([80.76.153.6]:43193)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mats.andersson@gisladisker.se>) id 1RoNRx-0001lo-G1
	for bug-inetutils@gnu.org; Fri, 20 Jan 2012 18:00:49 -0500
Received: from c83-253-249-30.bredband.comhem.se ([83.253.249.30]:51014
	helo=aun)
	by ch-smtp05.sth.basefarm.net with esmtps (TLSv1:AES256-SHA:256)
	(Exim 4.76) (envelope-from <mats.andersson@gisladisker.se>)
	id 1RoNRI-0000hL-Ht
	for bug-inetutils@gnu.org; Sat, 21 Jan 2012 00:00:09 +0100
Received: from meand by aun with local (Exim 4.69)
	(envelope-from <mats.andersson@gisladisker.se>) id 1RoNRG-0004GM-6A
	for bug-inetutils@gnu.org; Sat, 21 Jan 2012 00:00:07 +0100
Date: Sat, 21 Jan 2012 00:00:06 +0100
To: bug-inetutils@gnu.org
Message-ID: <20120120230006.GB15975@mea.homelinux.org>
MIME-Version: 1.0
Content-Disposition: inline
User-Agent: Mutt/1.5.18 (2008-05-17)
From: Mats Erik Andersson <mats.andersson@gisladisker.se>
X-SA-Exim-Connect-IP: <locally generated>
X-SA-Exim-Rcpt-To: bug-inetutils@gnu.org
X-SA-Exim-Mail-From: mats.andersson@gisladisker.se
Content-Type: text/plain; charset=us-ascii
X-SA-Exim-Version: 4.2.1 (built Wed, 25 Jun 2008 17:14:11 +0000)
X-SA-Exim-Scanned: Yes (on aun)
X-Originating-IP: 83.253.249.30
X-Scan-Result: No virus found in message 1RoNRI-0000hL-Ht.
X-Scan-Signature: ch-smtp05.sth.basefarm.net 1RoNRI-0000hL-Ht
	52ac5dc07b998d019a39ac6aeb337107
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 80.76.153.6
Subject: [bug-inetutils] ftpd: Pending IPv6 migration.
X-BeenThere: bug-inetutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Bug reports for the GNU Internet utilities <bug-inetutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-inetutils>
List-Post: <mailto:bug-inetutils@gnu.org>
List-Help: <mailto:bug-inetutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 20 Jan 2012 23:00:52 -0000

Dear all,

I am in possession of a large patch set to "ftpd/*" which will
achieve full IPv6 support.  Due to illness and non-portability
issues with IPv4-mapped-IPv6, my code pushing has gotten delayd.

The only step left is to testrun again on the seven systems I use,
so please to not push any text into "ftpd/" or "tests/ftp-localhost.sh".

Best regards,
  Mats


From MAILER-DAEMON Sat Jan 21 08:11:41 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1RoajN-0007u7-1p
	for mharc-bug-inetutils@gnu.org; Sat, 21 Jan 2012 08:11:41 -0500
Received: from eggs.gnu.org ([140.186.70.92]:55098)
	by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <ams@gnu.org>)
	id 1RoajK-0007tY-My
	for bug-inetutils@gnu.org; Sat, 21 Jan 2012 08:11:39 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <ams@gnu.org>) id 1RoajJ-0000xH-PT
	for bug-inetutils@gnu.org; Sat, 21 Jan 2012 08:11:38 -0500
Received: from fencepost.gnu.org ([140.186.70.10]:43599)
	by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ams@gnu.org>)
	id 1RoajJ-0000xC-Mj
	for bug-inetutils@gnu.org; Sat, 21 Jan 2012 08:11:37 -0500
Received: from ams by fencepost.gnu.org with local (Exim 4.71)
	(envelope-from <ams@gnu.org>)
	id 1RoajH-00036N-Fr; Sat, 21 Jan 2012 08:11:35 -0500
Date: Sat, 21 Jan 2012 08:11:35 -0500
Message-Id: <E1RoajH-00036N-Fr@fencepost.gnu.org>
From: ams@gnu.org (Alfred M. Szmidt)
To: Simon Josefsson <simon@josefsson.org>
In-reply-to: <87fwfc6otb.fsf@latte.josefsson.org> (message from Simon
	Josefsson on Thu, 19 Jan 2012 10:09:52 +0100)
References: <87fwfdvv0n.fsf@gnu.org> <20120118171424.GA19271@mea.homelinux.org>
	<E1RndAv-0004BR-5p@fencepost.gnu.org> <877h0osmrb.fsf@gnu.org>
	<E1Rnnvv-0007PN-Bt@fencepost.gnu.org>
	<87fwfc6otb.fsf@latte.josefsson.org>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 140.186.70.10
Cc: gnu@gisladisker.se, bug-inetutils@gnu.org, ludo@gnu.org
Subject: Re: [bug-inetutils] tests/syslogd.sh and /tmp
X-BeenThere: bug-inetutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: ams@gnu.org
List-Id: Bug reports for the GNU Internet utilities <bug-inetutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-inetutils>
List-Post: <mailto:bug-inetutils@gnu.org>
List-Help: <mailto:bug-inetutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 21 Jan 2012 13:11:39 -0000

   >    BTW, syslogd.sh says #!/bin/sh, but it seems to use non-POSIX
   >    extensions, no?
   >
   > What extentions do are you thinking of exactly?  I couldn't find
   > anything particular

   I noticed the $((foo)) construct that, according to the Autoconf
   manual, doesn't work on Solaris 10.  However I thought we had some
   positive success on Solaris?

$((FOO)) is in IEEE 1003.1-2004, not sure about earlier.  Maybe
Solaris uses a non-POSIX shell?


From MAILER-DAEMON Sun Jan 22 15:42:33 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Rp4FF-0006ru-K9
	for mharc-bug-inetutils@gnu.org; Sun, 22 Jan 2012 15:42:33 -0500
Received: from eggs.gnu.org ([140.186.70.92]:50582)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mats.andersson@gisladisker.se>) id 1Rp4FD-0006rn-3c
	for bug-inetutils@gnu.org; Sun, 22 Jan 2012 15:42:31 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <mats.andersson@gisladisker.se>) id 1Rp4FC-00013s-3M
	for bug-inetutils@gnu.org; Sun, 22 Jan 2012 15:42:30 -0500
Received: from ch-smtp05.sth.basefarm.net ([80.76.153.6]:43585)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mats.andersson@gisladisker.se>) id 1Rp4FB-00013n-Pe
	for bug-inetutils@gnu.org; Sun, 22 Jan 2012 15:42:30 -0500
Received: from c83-253-249-30.bredband.comhem.se ([83.253.249.30]:39707
	helo=aun)
	by ch-smtp05.sth.basefarm.net with esmtps (TLSv1:AES256-SHA:256)
	(Exim 4.76) (envelope-from <mats.andersson@gisladisker.se>)
	id 1Rp4Et-0004El-HO; Sun, 22 Jan 2012 21:42:12 +0100
Received: from meand by aun with local (Exim 4.69)
	(envelope-from <mats.andersson@gisladisker.se>)
	id 1Rp4Eg-0002Kx-Pq; Sun, 22 Jan 2012 21:42:01 +0100
Date: Sun, 22 Jan 2012 21:41:58 +0100
To: bug-inetutils@gnu.org
Message-ID: <20120122204158.GA8838@mea.homelinux.org>
References: <20120120230006.GB15975@mea.homelinux.org>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <20120120230006.GB15975@mea.homelinux.org>
User-Agent: Mutt/1.5.18 (2008-05-17)
From: Mats Erik Andersson <mats.andersson@gisladisker.se>
X-SA-Exim-Connect-IP: <locally generated>
X-SA-Exim-Rcpt-To: bug-inetutils@gnu.org, akfaew@jasminek.net
X-SA-Exim-Mail-From: mats.andersson@gisladisker.se
Content-Type: text/plain; charset=us-ascii
X-SA-Exim-Version: 4.2.1 (built Wed, 25 Jun 2008 17:14:11 +0000)
X-SA-Exim-Scanned: Yes (on aun)
X-Originating-IP: 83.253.249.30
X-Scan-Result: No virus found in message 1Rp4Et-0004El-HO.
X-Scan-Signature: ch-smtp05.sth.basefarm.net 1Rp4Et-0004El-HO
	b6fb1e8afd654ed0927a31df51c71995
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 80.76.153.6
Cc: Michal Mazurek <akfaew@jasminek.net>
Subject: Re: [bug-inetutils] ftpd: Pending IPv6 migration.
X-BeenThere: bug-inetutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Bug reports for the GNU Internet utilities <bug-inetutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-inetutils>
List-Post: <mailto:bug-inetutils@gnu.org>
List-Help: <mailto:bug-inetutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 22 Jan 2012 20:42:31 -0000

Dear all,

now the IPv6 migration of ftpd has been pushed. Apart from
your testing there two immediate tasks left:

  * The formatting in "ftpd/ftpcmd.y" should now be updated
    to follow GNU standards. Until now it is legacy formatting,
    but I have inserted so many more or less ugly changes that
    re formatting must be reworked. Better in a silent change
    without touching functionality.

  * Refactoring of "tests/ftl-localhost.sh", since there is much
    duplicate test evaluation in "IPv4", "IPv6", "IPv4-mapped-IPv6",
    as well as active/passive/epsv.

The lesson learned is that address family mapping is the least
portable in the variants of available INET stacks. It has caused
me almost as much labour as the other modifications, and I did
need five different systems to discover the pitfalls.

I am sending a copy to our recent friend Michal Mazurek in the hope
that he will report any problems for the embedded scenario, should
we happen to win his interest once more!

Best regards,
  Mats



From MAILER-DAEMON Sun Jan 22 15:59:21 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Rp4VV-0000mf-Qn
	for mharc-bug-inetutils@gnu.org; Sun, 22 Jan 2012 15:59:21 -0500
Received: from eggs.gnu.org ([140.186.70.92]:33545)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <ludo@gnu.org>) id 1Rp4VT-0000mZ-UE
	for bug-inetutils@gnu.org; Sun, 22 Jan 2012 15:59:20 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <ludo@gnu.org>) id 1Rp4VS-0002iU-OJ
	for bug-inetutils@gnu.org; Sun, 22 Jan 2012 15:59:19 -0500
Received: from mail4-relais-sop.national.inria.fr ([192.134.164.105]:11943)
	by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@gnu.org>)
	id 1Rp4VS-0002iO-GN
	for bug-inetutils@gnu.org; Sun, 22 Jan 2012 15:59:18 -0500
X-IronPort-AV: E=Sophos;i="4.71,552,1320620400"; d="scan'208";a="128432486"
Received: from reverse-83.fdn.fr (HELO pluto) ([80.67.176.83])
	by mail4-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES128-SHA;
	22 Jan 2012 21:59:16 +0100
From: ludo@gnu.org (Ludovic =?iso-8859-1?Q?Court=E8s?=)
To: Mats Erik Andersson <mats.andersson@gisladisker.se>
References: <87fwfdvv0n.fsf@gnu.org> <874nvs86j9.fsf@latte.josefsson.org>
	<20120119092337.GA28458@mea.homelinux.org>
	<877h0o6noo.fsf@latte.josefsson.org>
	<20120120225316.GA15975@mea.homelinux.org>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: 3 =?iso-8859-1?Q?Pluvi=F4se?= an 220 de la
	=?iso-8859-1?Q?R=E9volution?=
X-PGP-Key-ID: 0xEA52ECF4
X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc
X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA  D15D 77DD 95E2 EA52 ECF4
X-OS: x86_64-unknown-linux-gnu
Date: Sun, 22 Jan 2012 21:59:12 +0100
In-Reply-To: <20120120225316.GA15975@mea.homelinux.org> (Mats Erik Andersson's
	message of "Fri, 20 Jan 2012 23:53:16 +0100")
Message-ID: <8739b7bgin.fsf@gnu.org>
User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.90 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 192.134.164.105
Cc: bug-inetutils@gnu.org
Subject: Re: [bug-inetutils] tests/syslogd.sh and /tmp
X-BeenThere: bug-inetutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Bug reports for the GNU Internet utilities <bug-inetutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-inetutils>
List-Post: <mailto:bug-inetutils@gnu.org>
List-Help: <mailto:bug-inetutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 22 Jan 2012 20:59:20 -0000

Mats Erik Andersson <mats.andersson@gisladisker.se> skribis:

> This is portable to SVR3, possibly to V7! Thus helping me to satisfy NixO=
S.

NixOS GNU/Linux uses the latest GNU Bash.

Ludo=E2=80=99.


From MAILER-DAEMON Sun Jan 22 16:37:24 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Rp56K-0004ze-AH
	for mharc-bug-inetutils@gnu.org; Sun, 22 Jan 2012 16:37:24 -0500
Received: from eggs.gnu.org ([140.186.70.92]:42951)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mats.andersson@gisladisker.se>) id 1Rp56G-0004yC-Sn
	for bug-inetutils@gnu.org; Sun, 22 Jan 2012 16:37:21 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <mats.andersson@gisladisker.se>) id 1Rp56F-0006Q4-Vt
	for bug-inetutils@gnu.org; Sun, 22 Jan 2012 16:37:20 -0500
Received: from ch-smtp04.sth.basefarm.net ([80.76.153.5]:51748)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mats.andersson@gisladisker.se>)
	id 1Rp56E-0006Pp-Ab; Sun, 22 Jan 2012 16:37:18 -0500
Received: from c83-253-249-30.bredband.comhem.se ([83.253.249.30]:59502
	helo=aun)
	by ch-smtp04.sth.basefarm.net with esmtps (TLSv1:AES256-SHA:256)
	(Exim 4.76) (envelope-from <mats.andersson@gisladisker.se>)
	id 1Rp55q-0000oA-Ej; Sun, 22 Jan 2012 22:36:56 +0100
Received: from meand by aun with local (Exim 4.69)
	(envelope-from <mats.andersson@gisladisker.se>)
	id 1Rp55k-0002T8-OR; Sun, 22 Jan 2012 22:36:51 +0100
Date: Sun, 22 Jan 2012 22:36:48 +0100
To: Ludovic =?iso-8859-1?Q?Court=E8s?= <ludo@gnu.org>
Message-ID: <20120122213648.GA9449@mea.homelinux.org>
References: <87fwfdvv0n.fsf@gnu.org> <874nvs86j9.fsf@latte.josefsson.org>
	<20120119092337.GA28458@mea.homelinux.org>
	<877h0o6noo.fsf@latte.josefsson.org>
	<20120120225316.GA15975@mea.homelinux.org> <8739b7bgin.fsf@gnu.org>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <8739b7bgin.fsf@gnu.org>
User-Agent: Mutt/1.5.18 (2008-05-17)
From: Mats Erik Andersson <mats.andersson@gisladisker.se>
X-SA-Exim-Connect-IP: <locally generated>
X-SA-Exim-Rcpt-To: ludo@gnu.org, bug-inetutils@gnu.org
X-SA-Exim-Mail-From: mats.andersson@gisladisker.se
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-SA-Exim-Version: 4.2.1 (built Wed, 25 Jun 2008 17:14:11 +0000)
X-SA-Exim-Scanned: Yes (on aun)
X-Originating-IP: 83.253.249.30
X-Scan-Result: No virus found in message 1Rp55q-0000oA-Ej.
X-Scan-Signature: ch-smtp04.sth.basefarm.net 1Rp55q-0000oA-Ej
	6a479e8bad79001b2aa77d99f170c2c6
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 80.76.153.5
Cc: bug-inetutils@gnu.org
Subject: Re: [bug-inetutils] tests/syslogd.sh and /tmp
X-BeenThere: bug-inetutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Bug reports for the GNU Internet utilities <bug-inetutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-inetutils>
List-Post: <mailto:bug-inetutils@gnu.org>
List-Help: <mailto:bug-inetutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 22 Jan 2012 21:37:21 -0000

söndag den 22 januari 2012 klockan 21:59 skrev Ludovic Courtès detta:
> Mats Erik Andersson <mats.andersson@gisladisker.se> skribis:
> 
> > This is portable to SVR3, possibly to V7! Thus helping me to satisfy NixOS.
> 
> NixOS GNU/Linux uses the latest GNU Bash.

The reference is to a variable length TMPDIR, sanitation of the same,
and the build of long socket names thereof, which causes a lot of work.
SVR3 is concerned with Solaris 9 and equally distant legacy systems,
but portability to SVR4 remains the immediate goal.

Good evening.


From MAILER-DAEMON Sun Jan 22 19:25:35 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Rp7j5-0003tT-QI
	for mharc-bug-inetutils@gnu.org; Sun, 22 Jan 2012 19:25:35 -0500
Received: from eggs.gnu.org ([140.186.70.92]:52398)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mats.andersson@gisladisker.se>) id 1Rp7j3-0003tN-Os
	for bug-inetutils@gnu.org; Sun, 22 Jan 2012 19:25:34 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <mats.andersson@gisladisker.se>) id 1Rp7j2-0006MB-DL
	for bug-inetutils@gnu.org; Sun, 22 Jan 2012 19:25:33 -0500
Received: from ch-smtp04.sth.basefarm.net ([80.76.153.5]:44233)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mats.andersson@gisladisker.se>) id 1Rp7j2-0006Lv-3i
	for bug-inetutils@gnu.org; Sun, 22 Jan 2012 19:25:32 -0500
Received: from c83-253-249-30.bredband.comhem.se ([83.253.249.30]:51294
	helo=aun)
	by ch-smtp04.sth.basefarm.net with esmtps (TLSv1:AES256-SHA:256)
	(Exim 4.76) (envelope-from <mats.andersson@gisladisker.se>)
	id 1Rp7io-0003Cm-Ev
	for bug-inetutils@gnu.org; Mon, 23 Jan 2012 01:25:20 +0100
Received: from meand by aun with local (Exim 4.69)
	(envelope-from <mats.andersson@gisladisker.se>) id 1Rp7il-0002rY-Bl
	for bug-inetutils@gnu.org; Mon, 23 Jan 2012 01:25:18 +0100
Date: Mon, 23 Jan 2012 01:25:15 +0100
To: bug-inetutils@gnu.org
Message-ID: <20120123002515.GA10807@mea.homelinux.org>
References: <87fwfdvv0n.fsf@gnu.org> <20120118171424.GA19271@mea.homelinux.org>
	<E1RndAv-0004BR-5p@fencepost.gnu.org> <877h0osmrb.fsf@gnu.org>
	<E1Rnnvv-0007PN-Bt@fencepost.gnu.org>
	<87fwfc6otb.fsf@latte.josefsson.org>
	<E1RoajH-00036N-Fr@fencepost.gnu.org>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <E1RoajH-00036N-Fr@fencepost.gnu.org>
User-Agent: Mutt/1.5.18 (2008-05-17)
From: Mats Erik Andersson <mats.andersson@gisladisker.se>
X-SA-Exim-Connect-IP: <locally generated>
X-SA-Exim-Rcpt-To: bug-inetutils@gnu.org
X-SA-Exim-Mail-From: mats.andersson@gisladisker.se
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-SA-Exim-Version: 4.2.1 (built Wed, 25 Jun 2008 17:14:11 +0000)
X-SA-Exim-Scanned: Yes (on aun)
X-Originating-IP: 83.253.249.30
X-Scan-Result: No virus found in message 1Rp7io-0003Cm-Ev.
X-Scan-Signature: ch-smtp04.sth.basefarm.net 1Rp7io-0003Cm-Ev
	3be3a9721bf82b392e90c33426f008df
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 80.76.153.5
Subject: [bug-inetutils] Shell capabilities. (Was: tests/syslogd.sh and /tmp)
X-BeenThere: bug-inetutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Bug reports for the GNU Internet utilities <bug-inetutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-inetutils>
List-Post: <mailto:bug-inetutils@gnu.org>
List-Help: <mailto:bug-inetutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 23 Jan 2012 00:25:34 -0000

lördag den 21 januari 2012 klockan 08:11 skrev Alfred M. Szmidt detta:
>    >    BTW, syslogd.sh says #!/bin/sh, but it seems to use non-POSIX
>    >    extensions, no?
>    >
>    > What extentions do are you thinking of exactly?  I couldn't find
>    > anything particular
> 
>    I noticed the $((foo)) construct that, according to the Autoconf
>    manual, doesn't work on Solaris 10.  However I thought we had some
>    positive success on Solaris?
> 
> $((FOO)) is in IEEE 1003.1-2004, not sure about earlier.  Maybe
> Solaris uses a non-POSIX shell?

I wish I had access to Solaris 9 or 10 for building IU, but alas.

On OpenIndiana, sh(1) and most other shells are linked to different
personalities of ksh93(1), and so is the documentation.

On GNU/OpenSolaris, i.e., NexentaCore, sh(1) and some more are linked
to bash(1):

   /bin/sh -> bash

However, the manual page sh(1) claims to describe

   /usr/bin/sh        ( -> bash on NexentaCore )
   /usr/xpg4/bin/sh

of which the latter is a standalone variant of ksh(1).
The important observation is that the manual page sh(1)
is NOT mentioning either of $( ) or $(( )). Still tests
show that "/usr/xpg4/bin/sh" does understand both contructs
since it is closely related to the Korn shell.

My interpretation is that we should avoid "$( )" and "$(( ))"
if we want to support Solaris 10 or 9.

Regards,
  Mats


From MAILER-DAEMON Mon Jan 23 03:55:43 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1RpFgl-0006RI-L1
	for mharc-bug-inetutils@gnu.org; Mon, 23 Jan 2012 03:55:43 -0500
Received: from eggs.gnu.org ([140.186.70.92]:38911)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <simon@josefsson.org>) id 1RpFgi-0006Po-Sa
	for bug-inetutils@gnu.org; Mon, 23 Jan 2012 03:55:41 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <simon@josefsson.org>) id 1RpFge-0007Wx-O2
	for bug-inetutils@gnu.org; Mon, 23 Jan 2012 03:55:40 -0500
Received: from static-213-115-179-173.sme.bredbandsbolaget.se
	([213.115.179.173]:33742 helo=yxa-v.extundo.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <simon@josefsson.org>) id 1RpFge-0007Vm-DJ
	for bug-inetutils@gnu.org; Mon, 23 Jan 2012 03:55:36 -0500
Received: from latte.josefsson.org
	(static-213-115-179-130.sme.bredbandsbolaget.se [213.115.179.130])
	(authenticated bits=0)
	by yxa-v.extundo.com (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id
	q0N8t7jx025171
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT);
	Mon, 23 Jan 2012 09:55:08 +0100
From: Simon Josefsson <simon@josefsson.org>
To: Mats Erik Andersson <mats.andersson@gisladisker.se>
References: <87fwfdvv0n.fsf@gnu.org> <20120118171424.GA19271@mea.homelinux.org>
	<E1RndAv-0004BR-5p@fencepost.gnu.org> <877h0osmrb.fsf@gnu.org>
	<E1Rnnvv-0007PN-Bt@fencepost.gnu.org>
	<87fwfc6otb.fsf@latte.josefsson.org>
	<E1RoajH-00036N-Fr@fencepost.gnu.org>
	<20120123002515.GA10807@mea.homelinux.org>
OpenPGP: id=B565716F; url=http://josefsson.org/key.txt
X-Hashcash: 1:22:120123:mats.andersson@gisladisker.se::fjbnyqxs4kyPKovS:0b30
X-Hashcash: 1:22:120123:bug-inetutils@gnu.org::uQ8/xANwMK3B7RPG:4B7n
Date: Mon, 23 Jan 2012 09:55:07 +0100
In-Reply-To: <20120123002515.GA10807@mea.homelinux.org> (Mats Erik Andersson's
	message of "Mon, 23 Jan 2012 01:25:15 +0100")
Message-ID: <871uqqol1w.fsf@latte.josefsson.org>
User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.92 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
X-Virus-Scanned: clamav-milter 0.97.3 at yxa-v
X-Virus-Status: Clean
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by yxa-v.extundo.com id
	q0N8t7jx025171
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1)
X-Received-From: 213.115.179.173
Cc: bug-inetutils@gnu.org
Subject: Re: [bug-inetutils] Shell capabilities.
X-BeenThere: bug-inetutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Bug reports for the GNU Internet utilities <bug-inetutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-inetutils>
List-Post: <mailto:bug-inetutils@gnu.org>
List-Help: <mailto:bug-inetutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 23 Jan 2012 08:55:41 -0000

Mats Erik Andersson <mats.andersson@gisladisker.se> writes:

> l=F6rdag den 21 januari 2012 klockan 08:11 skrev Alfred M. Szmidt detta=
:
>>    >    BTW, syslogd.sh says #!/bin/sh, but it seems to use non-POSIX
>>    >    extensions, no?
>>    >
>>    > What extentions do are you thinking of exactly?  I couldn't find
>>    > anything particular
>>=20
>>    I noticed the $((foo)) construct that, according to the Autoconf
>>    manual, doesn't work on Solaris 10.  However I thought we had some
>>    positive success on Solaris?
>>=20
>> $((FOO)) is in IEEE 1003.1-2004, not sure about earlier.  Maybe
>> Solaris uses a non-POSIX shell?
>
> I wish I had access to Solaris 9 or 10 for building IU, but alas.

Talk to the opencsw.org guys, they have both Solaris 9 and 10 for x86
and sparc.  I think they also have Solaris 8, but I don't think we need
to care about that platform.  And further, I don't think Solaris support
is something we should spend a lot of time on if it takes away time to
work on other improvements that benefits GNU platforms.

/Simon


From MAILER-DAEMON Mon Jan 23 07:23:47 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1RpIw7-00019O-UV
	for mharc-bug-inetutils@gnu.org; Mon, 23 Jan 2012 07:23:47 -0500
Received: from eggs.gnu.org ([140.186.70.92]:58606)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mats.andersson@gisladisker.se>) id 1RpIw1-000187-EH
	for bug-inetutils@gnu.org; Mon, 23 Jan 2012 07:23:45 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <mats.andersson@gisladisker.se>) id 1RpIvx-0000K6-0B
	for bug-inetutils@gnu.org; Mon, 23 Jan 2012 07:23:41 -0500
Received: from ch-smtp05.sth.basefarm.net ([80.76.153.6]:47932)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mats.andersson@gisladisker.se>) id 1RpIvw-0000Jv-Mj
	for bug-inetutils@gnu.org; Mon, 23 Jan 2012 07:23:36 -0500
Received: from c83-253-249-30.bredband.comhem.se ([83.253.249.30]:45723
	helo=aun)
	by ch-smtp05.sth.basefarm.net with esmtps (TLSv1:AES256-SHA:256)
	(Exim 4.76) (envelope-from <mats.andersson@gisladisker.se>)
	id 1RpIvG-00063f-Iv
	for bug-inetutils@gnu.org; Mon, 23 Jan 2012 13:22:59 +0100
Received: from meand by aun with local (Exim 4.69)
	(envelope-from <mats.andersson@gisladisker.se>) id 1RpIvE-0004g6-S7
	for bug-inetutils@gnu.org; Mon, 23 Jan 2012 13:22:54 +0100
Date: Mon, 23 Jan 2012 13:22:52 +0100
To: bug-inetutils@gnu.org
Message-ID: <20120123122252.GA17803@mea.homelinux.org>
References: <87fwfdvv0n.fsf@gnu.org> <20120118171424.GA19271@mea.homelinux.org>
	<E1RndAv-0004BR-5p@fencepost.gnu.org> <877h0osmrb.fsf@gnu.org>
	<E1Rnnvv-0007PN-Bt@fencepost.gnu.org>
	<87fwfc6otb.fsf@latte.josefsson.org>
	<E1RoajH-00036N-Fr@fencepost.gnu.org>
	<20120123002515.GA10807@mea.homelinux.org>
	<871uqqol1w.fsf@latte.josefsson.org>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <871uqqol1w.fsf@latte.josefsson.org>
User-Agent: Mutt/1.5.18 (2008-05-17)
From: Mats Erik Andersson <mats.andersson@gisladisker.se>
X-SA-Exim-Connect-IP: <locally generated>
X-SA-Exim-Rcpt-To: bug-inetutils@gnu.org
X-SA-Exim-Mail-From: mats.andersson@gisladisker.se
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-SA-Exim-Version: 4.2.1 (built Wed, 25 Jun 2008 17:14:11 +0000)
X-SA-Exim-Scanned: Yes (on aun)
X-Originating-IP: 83.253.249.30
X-Scan-Result: No virus found in message 1RpIvG-00063f-Iv.
X-Scan-Signature: ch-smtp05.sth.basefarm.net 1RpIvG-00063f-Iv
	5a00ec61820563aa05d6c53b6345d008
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 80.76.153.6
Subject: Re: [bug-inetutils] Shell capabilities.
X-BeenThere: bug-inetutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Bug reports for the GNU Internet utilities <bug-inetutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-inetutils>
List-Post: <mailto:bug-inetutils@gnu.org>
List-Help: <mailto:bug-inetutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 23 Jan 2012 12:23:45 -0000

måndag den 23 januari 2012 klockan 09:55 skrev Simon Josefsson detta:
> Mats Erik Andersson <mats.andersson@gisladisker.se> writes:
> 
> > lördag den 21 januari 2012 klockan 08:11 skrev Alfred M. Szmidt detta:
> >>    >    BTW, syslogd.sh says #!/bin/sh, but it seems to use non-POSIX
> >>    >    extensions, no?
> >>    >
> >>    > What extentions do are you thinking of exactly?  I couldn't find
> >>    > anything particular
> >> 
> >>    I noticed the $((foo)) construct that, according to the Autoconf
> >>    manual, doesn't work on Solaris 10.  However I thought we had some
> >>    positive success on Solaris?
> >> 
> >> $((FOO)) is in IEEE 1003.1-2004, not sure about earlier.  Maybe
> >> Solaris uses a non-POSIX shell?

[...]

> to care about that platform.  And further, I don't think Solaris support
> is something we should spend a lot of time on if it takes away time to
> work on other improvements that benefits GNU platforms.

Both of GNU/OpenSolaris-NexentaCore (in /sbin/sh) and
OpenIndiana (in /usr/has/bin/sh) provide a SVR4 Bourne
shell for legacy purposes. The issues that arise are

   ## Exit value reversal not available.
   $ ! false
   sh: !: not found

   ## Tilde expansion not provided.
   $ echo ~ftp
   ~ftp

   ## Missing $( ) and $(( )) constructs.
   $ echo $(date)
   syntax error at line 1: ...
   $ echo $((1 + 2))
   syntax error at line 1: ...

   ## Stripped down grep: no "-q", no extended regex.
   $ grep -h
   Usage: grep -hblcnsviw pattern file ...

   ## Defective parameter handling
   $ echo ${10}
   sh: bad substitution
   $ set -- 0 1 2
   $ echo $2
   1
   $ set --
   $ echo $2
   1

Regards,
  Mats


From MAILER-DAEMON Tue Jan 24 15:19:14 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Rpmpm-0002z3-6O
	for mharc-bug-inetutils@gnu.org; Tue, 24 Jan 2012 15:19:14 -0500
Received: from eggs.gnu.org ([140.186.70.92]:37300)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mats.andersson@gisladisker.se>) id 1Rpmpd-00017F-C7
	for bug-inetutils@gnu.org; Tue, 24 Jan 2012 15:19:11 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <mats.andersson@gisladisker.se>) id 1Rpmbd-0000NI-QX
	for bug-inetutils@gnu.org; Tue, 24 Jan 2012 15:04:39 -0500
Received: from ch-smtp05.sth.basefarm.net ([80.76.153.6]:39378)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mats.andersson@gisladisker.se>) id 1Rpmbd-0000NB-Eb
	for bug-inetutils@gnu.org; Tue, 24 Jan 2012 15:04:37 -0500
Received: from c83-253-249-30.bredband.comhem.se ([83.253.249.30]:57646
	helo=aun)
	by ch-smtp05.sth.basefarm.net with esmtps (TLSv1:AES256-SHA:256)
	(Exim 4.76) (envelope-from <mats.andersson@gisladisker.se>)
	id 1Rpmav-0003R8-Iv
	for bug-inetutils@gnu.org; Tue, 24 Jan 2012 21:03:55 +0100
Received: from meand by aun with local (Exim 4.69)
	(envelope-from <mats.andersson@gisladisker.se>) id 1Rpmah-0000Yu-JO
	for bug-inetutils@gnu.org; Tue, 24 Jan 2012 21:03:41 +0100
Date: Tue, 24 Jan 2012 21:03:39 +0100
From: Mats Erik Andersson <gnu@gisladisker.se>
To: bug-inetutils@gnu.org
Message-ID: <20120124200339.GA1904@mea.homelinux.org>
MIME-Version: 1.0
Content-Disposition: inline
User-Agent: Mutt/1.5.18 (2008-05-17)
X-SA-Exim-Connect-IP: <locally generated>
X-SA-Exim-Rcpt-To: bug-inetutils@gnu.org
X-SA-Exim-Mail-From: mats.andersson@gisladisker.se
Content-Type: multipart/mixed; boundary="WIyZ46R2i8wDzkSu"
X-SA-Exim-Version: 4.2.1 (built Wed, 25 Jun 2008 17:14:11 +0000)
X-SA-Exim-Scanned: Yes (on aun)
X-Originating-IP: 83.253.249.30
X-Scan-Result: No virus found in message 1Rpmav-0003R8-Iv.
X-Scan-Signature: ch-smtp05.sth.basefarm.net 1Rpmav-0003R8-Iv
	980d7b96b86d6cc090d3405a70984480
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 80.76.153.6
Subject: [bug-inetutils] Defects in encrypt for TELNET.
X-BeenThere: bug-inetutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Bug reports for the GNU Internet utilities <bug-inetutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-inetutils>
List-Post: <mailto:bug-inetutils@gnu.org>
List-Help: <mailto:bug-inetutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 24 Jan 2012 20:19:12 -0000


--WIyZ46R2i8wDzkSu
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Dear all,

I have claimed before that prototype inclusion is in a miserable
state as soon as Kerberos or Shishi is activates. Today I decided
to attack a trivial case and immediately I located an serious bug.

Using "--with-shishi" there were warnings about missing prototypes
for auth_printsub() and encrypt_printsub() in "telnet/utilities.c"
and "telnetd/utility.c". The patch below silences these. My work
uncovered the self-contradictory statements for prototype,
declaration and definition of encrypt_printsub(), namely in
the order of its arguments. The implementation up until now
should probably render encrypted content into garbage under
some circumstances. Could the original architect step up to
claim reproducably whether the recent release produces fully
functional TELNET server and client, and whether my proposed
changes improve the situation, again reproducably?

The patch reverserses the order between auth_printsub() and
auth_gen_printsub() in "libtelnet/auth.c" so that proper
encapsulation attains. Observe also that every *_printsub()
except encrypt_printsub() share the prototype

   name (unsigned char *, int, unsigned char *, int)

Had header inclusion been properly implemented, the present bug
would have been easily detected. The iceberg of incomplete 
coverage in our Kerberos code is still below surface! I maintain
the view that verified Kerberos support should be a major milestone
for our next release.

Best regards,
  Mats 

--WIyZ46R2i8wDzkSu
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment; filename="auth_encrypt_printsub.diff"

diff --git a/libtelnet/auth-proto.h b/libtelnet/auth-proto.h
index 1735954..f155d36 100644
--- a/libtelnet/auth-proto.h
+++ b/libtelnet/auth-proto.h
@@ -80,7 +80,7 @@ void auth_reply (unsigned char *, int);
 void auth_finished (TN_Authenticator *, int);
 int auth_wait (char *);
 void auth_disable_name (char *);
-void auth_gen_printsub (unsigned char *, int, unsigned char *, int);
+void auth_printsub (unsigned char *, int, unsigned char *, int);
 int auth_sendname (unsigned char *, int);
 
 # ifdef	KRB4
diff --git a/libtelnet/auth.c b/libtelnet/auth.c
index eaa11f0..bec72ad 100644
--- a/libtelnet/auth.c
+++ b/libtelnet/auth.c
@@ -694,18 +694,7 @@ auth_debug (int mode)
   auth_debug_mode = mode;
 }
 
-void
-auth_printsub (unsigned char *data, int cnt, unsigned char *buf, int buflen)
-{
-  TN_Authenticator *ap;
-
-  if ((ap = findauthenticator (data[1], data[2])) && ap->printsub)
-    (*ap->printsub) (data, cnt, buf, buflen);
-  else
-    auth_gen_printsub (data, cnt, buf, buflen);
-}
-
-void
+static void
 auth_gen_printsub (unsigned char *data, int cnt, unsigned char *buf,
 		   int buflen)
 {
@@ -727,4 +716,15 @@ auth_gen_printsub (unsigned char *data, int cnt, unsigned char *buf,
     }
   *buf = '\0';
 }
+
+void
+auth_printsub (unsigned char *data, int cnt, unsigned char *buf, int buflen)
+{
+  TN_Authenticator *ap;
+
+  if ((ap = findauthenticator (data[1], data[2])) && ap->printsub)
+    (*ap->printsub) (data, cnt, buf, buflen);
+  else
+    auth_gen_printsub (data, cnt, buf, buflen);
+}
 #endif
diff --git a/libtelnet/enc-proto.h b/libtelnet/enc-proto.h
index e78f7ec..d0c5f1b 100644
--- a/libtelnet/enc-proto.h
+++ b/libtelnet/enc-proto.h
@@ -86,9 +86,10 @@ void encrypt_send_end (void);
 void encrypt_wait (void);
 void encrypt_send_support (void);
 void encrypt_send_keyid (int, unsigned char *, int, int);
+void encrypt_printsub (unsigned char *, int, unsigned char *, int);
 int net_write (unsigned char *, int);
 
-# ifdef	TELENTD
+# ifdef	TELNETD
 void encrypt_wait (void);
 # else
 int encrypt_cmd (int, char **);
diff --git a/libtelnet/encrypt.c b/libtelnet/encrypt.c
index 8b349a6..4719043 100644
--- a/libtelnet/encrypt.c
+++ b/libtelnet/encrypt.c
@@ -967,9 +967,9 @@ encrypt_debug (int mode)
   encrypt_debug_mode = mode;
 }
 
-void
-encrypt_gen_printsub (unsigned char *data, unsigned char *buf,
-		      int cnt, int buflen)
+static void
+encrypt_gen_printsub (unsigned char *data, int cnt,
+		      unsigned char *buf, int buflen)
 {
   char tbuf[16], *cp;
 
@@ -990,8 +990,8 @@ encrypt_gen_printsub (unsigned char *data, unsigned char *buf,
 }
 
 void
-encrypt_printsub (unsigned char *data, unsigned char *buf,
-		  int cnt, int buflen)
+encrypt_printsub (unsigned char *data, int cnt,
+		  unsigned char *buf, int buflen)
 {
   Encryptions *ep;
   int type = data[1];
diff --git a/telnet/utilities.c b/telnet/utilities.c
index 12a6b08..4da265a 100644
--- a/telnet/utilities.c
+++ b/telnet/utilities.c
@@ -66,6 +66,13 @@
 #include "defines.h"
 #include "externs.h"
 
+#ifdef AUTHENTICATION
+# include <libtelnet/auth.h>
+#endif
+#ifdef ENCRYPTION
+# include <libtelnet/encrypt.h>
+#endif
+
 FILE *NetTrace = 0;		/* Not in bss, since needs to stay */
 int prettydump;
 
diff --git a/telnetd/telnetd.h b/telnetd/telnetd.h
index 8a275ec..35ab161 100644
--- a/telnetd/telnetd.h
+++ b/telnetd/telnetd.h
@@ -51,6 +51,7 @@
 
 #include <arpa/telnet.h>
 #include <libtelnet/auth.h>
+#include <libtelnet/encrypt.h>
 
 #include <termios.h>
 

--WIyZ46R2i8wDzkSu--


From MAILER-DAEMON Wed Jan 25 16:57:48 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1RqAqi-0006lu-Hp
	for mharc-bug-inetutils@gnu.org; Wed, 25 Jan 2012 16:57:48 -0500
Received: from eggs.gnu.org ([140.186.70.92]:44123)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mats.andersson@gisladisker.se>) id 1RqAqg-0006ll-0e
	for bug-inetutils@gnu.org; Wed, 25 Jan 2012 16:57:47 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <mats.andersson@gisladisker.se>) id 1RqAqf-0000N1-1d
	for bug-inetutils@gnu.org; Wed, 25 Jan 2012 16:57:45 -0500
Received: from ch-smtp05.sth.basefarm.net ([80.76.153.6]:47737)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mats.andersson@gisladisker.se>)
	id 1RqAqe-0000Mq-PB; Wed, 25 Jan 2012 16:57:45 -0500
Received: from c83-253-249-30.bredband.comhem.se ([83.253.249.30]:59321
	helo=aun)
	by ch-smtp05.sth.basefarm.net with esmtps (TLSv1:AES256-SHA:256)
	(Exim 4.76) (envelope-from <mats.andersson@gisladisker.se>)
	id 1RqAqc-00066v-Gi; Wed, 25 Jan 2012 22:57:43 +0100
Received: from meand by aun with local (Exim 4.69)
	(envelope-from <mats.andersson@gisladisker.se>)
	id 1RqAqR-000492-1V; Wed, 25 Jan 2012 22:57:32 +0100
Date: Wed, 25 Jan 2012 22:57:30 +0100
To: bug-inetutils@gnu.org
Message-ID: <20120125215730.GA15850@mea.homelinux.org>
References: <87fwfdvv0n.fsf@gnu.org> <874nvs86j9.fsf@latte.josefsson.org>
	<20120119092337.GA28458@mea.homelinux.org>
	<877h0o6noo.fsf@latte.josefsson.org>
	<20120120225316.GA15975@mea.homelinux.org> <8739b7bgin.fsf@gnu.org>
	<20120122213648.GA9449@mea.homelinux.org>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <20120122213648.GA9449@mea.homelinux.org>
User-Agent: Mutt/1.5.18 (2008-05-17)
From: Mats Erik Andersson <mats.andersson@gisladisker.se>
X-SA-Exim-Connect-IP: <locally generated>
X-SA-Exim-Rcpt-To: bug-inetutils@gnu.org, ludo@gnu.org
X-SA-Exim-Mail-From: mats.andersson@gisladisker.se
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-SA-Exim-Version: 4.2.1 (built Wed, 25 Jun 2008 17:14:11 +0000)
X-SA-Exim-Scanned: Yes (on aun)
X-Originating-IP: 83.253.249.30
X-Scan-Result: No virus found in message 1RqAqc-00066v-Gi.
X-Scan-Signature: ch-smtp05.sth.basefarm.net 1RqAqc-00066v-Gi
	e73f9fa9a874190a0111868394429fcd
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 80.76.153.6
Cc: Ludovic =?iso-8859-1?Q?Court=E8s?= <ludo@gnu.org>
Subject: Re: [bug-inetutils] tests/syslogd.sh and /tmp
X-BeenThere: bug-inetutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Bug reports for the GNU Internet utilities <bug-inetutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-inetutils>
List-Post: <mailto:bug-inetutils@gnu.org>
List-Help: <mailto:bug-inetutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 25 Jan 2012 21:57:47 -0000

söndag den 22 januari 2012 klockan 22:36 skrev Mats Erik Andersson detta:
> söndag den 22 januari 2012 klockan 21:59 skrev Ludovic Courtès detta:
> > Mats Erik Andersson <mats.andersson@gisladisker.se> skribis:
> > 
> > > This is portable to SVR3, possibly to V7! Thus helping me to satisfy NixOS.
> > 
> > NixOS GNU/Linux uses the latest GNU Bash.
> 
> The reference is to a variable length TMPDIR, sanitation of the same,
> and the build of long socket names thereof, which causes a lot of work.
> SVR3 is concerned with Solaris 9 and equally distant legacy systems,
> but portability to SVR4 remains the immediate goal.

I have now pushed a rewrite of "tests/syslogd.sh". It is also possible
to use it as a replacement in inetutils-1.9 and inetutils-1.9.1. There
is a full implementation of TMPDIR sensing with due value quoting.
The test script works correctly with a SVR4 Bourne shell as found in
OpenSolaris and OpenIndiana, in addition to have been tested with bash,
dash, mksh, pdksh, and busybox-ash.

A message from NixOS as to the suitability of this modification would
be most welcome.

Regards,
  Mats E A


From MAILER-DAEMON Wed Jan 25 18:47:49 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1RqCZB-0006So-4i
	for mharc-bug-inetutils@gnu.org; Wed, 25 Jan 2012 18:47:49 -0500
Received: from eggs.gnu.org ([140.186.70.92]:49173)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <ludo@gnu.org>) id 1RqCZ7-0006PB-P5
	for bug-inetutils@gnu.org; Wed, 25 Jan 2012 18:47:47 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <ludo@gnu.org>) id 1RqCZ5-000682-2O
	for bug-inetutils@gnu.org; Wed, 25 Jan 2012 18:47:45 -0500
Received: from mail4-relais-sop.national.inria.fr ([192.134.164.105]:4886)
	by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@gnu.org>)
	id 1RqCZ4-00067j-Rt
	for bug-inetutils@gnu.org; Wed, 25 Jan 2012 18:47:43 -0500
X-IronPort-AV: E=Sophos;i="4.71,571,1320620400"; d="scan'208";a="128871614"
Received: from reverse-83.fdn.fr (HELO pluto) ([80.67.176.83])
	by mail4-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES128-SHA;
	26 Jan 2012 00:47:40 +0100
From: ludo@gnu.org (Ludovic =?iso-8859-1?Q?Court=E8s?=)
To: Mats Erik Andersson <mats.andersson@gisladisker.se>
References: <87fwfdvv0n.fsf@gnu.org> <874nvs86j9.fsf@latte.josefsson.org>
	<20120119092337.GA28458@mea.homelinux.org>
	<877h0o6noo.fsf@latte.josefsson.org>
	<20120120225316.GA15975@mea.homelinux.org> <8739b7bgin.fsf@gnu.org>
	<20120122213648.GA9449@mea.homelinux.org>
	<20120125215730.GA15850@mea.homelinux.org>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: 6 =?iso-8859-1?Q?Pluvi=F4se?= an 220 de la
	=?iso-8859-1?Q?R=E9volution?=
X-PGP-Key-ID: 0xEA52ECF4
X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc
X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA  D15D 77DD 95E2 EA52 ECF4
X-OS: x86_64-unknown-linux-gnu
Date: Thu, 26 Jan 2012 00:47:37 +0100
In-Reply-To: <20120125215730.GA15850@mea.homelinux.org> (Mats Erik Andersson's
	message of "Wed, 25 Jan 2012 22:57:30 +0100")
Message-ID: <878vkve44m.fsf@gnu.org>
User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.90 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 192.134.164.105
Cc: bug-inetutils@gnu.org
Subject: Re: [bug-inetutils] tests/syslogd.sh and /tmp
X-BeenThere: bug-inetutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Bug reports for the GNU Internet utilities <bug-inetutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-inetutils>
List-Post: <mailto:bug-inetutils@gnu.org>
List-Help: <mailto:bug-inetutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 25 Jan 2012 23:47:47 -0000

Hi Mats,

Mats Erik Andersson <mats.andersson@gisladisker.se> skribis:

> I have now pushed a rewrite of "tests/syslogd.sh". It is also possible
> to use it as a replacement in inetutils-1.9 and inetutils-1.9.1. There
> is a full implementation of TMPDIR sensing with due value quoting.
> The test script works correctly with a SVR4 Bourne shell as found in
> OpenSolaris and OpenIndiana, in addition to have been tested with bash,
> dash, mksh, pdksh, and busybox-ash.

Thanks for working on it!

> A message from NixOS as to the suitability of this modification would
> be most welcome.

It can be seen at <http://hydra.nixos.org/jobset/gnu/inetutils-master>.
It=E2=80=99s currently failing, but I=E2=80=99ll let you analyze the log.  =
;-)

Thanks,
Ludo=E2=80=99.


From MAILER-DAEMON Wed Jan 25 20:44:10 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1RqENm-0006So-3y
	for mharc-bug-inetutils@gnu.org; Wed, 25 Jan 2012 20:44:10 -0500
Received: from eggs.gnu.org ([140.186.70.92]:37514)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mats.andersson@gisladisker.se>) id 1RqENj-0006Sg-8w
	for bug-inetutils@gnu.org; Wed, 25 Jan 2012 20:44:08 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <mats.andersson@gisladisker.se>) id 1RqENi-0003DF-9J
	for bug-inetutils@gnu.org; Wed, 25 Jan 2012 20:44:07 -0500
Received: from ch-smtp04.sth.basefarm.net ([80.76.153.5]:34021)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mats.andersson@gisladisker.se>)
	id 1RqENf-0003Bi-VU; Wed, 25 Jan 2012 20:44:04 -0500
Received: from c83-253-249-30.bredband.comhem.se ([83.253.249.30]:40644
	helo=aun)
	by ch-smtp04.sth.basefarm.net with esmtps (TLSv1:AES256-SHA:256)
	(Exim 4.76) (envelope-from <mats.andersson@gisladisker.se>)
	id 1RqEN5-0006CI-D5; Thu, 26 Jan 2012 02:43:29 +0100
Received: from meand by aun with local (Exim 4.69)
	(envelope-from <mats.andersson@gisladisker.se>)
	id 1RqEMy-0004dz-Hj; Thu, 26 Jan 2012 02:43:23 +0100
Date: Thu, 26 Jan 2012 02:43:20 +0100
To: Ludovic =?iso-8859-1?Q?Court=E8s?= <ludo@gnu.org>
Message-ID: <20120126014320.GA17307@mea.homelinux.org>
References: <87fwfdvv0n.fsf@gnu.org> <874nvs86j9.fsf@latte.josefsson.org>
	<20120119092337.GA28458@mea.homelinux.org>
	<877h0o6noo.fsf@latte.josefsson.org>
	<20120120225316.GA15975@mea.homelinux.org> <8739b7bgin.fsf@gnu.org>
	<20120122213648.GA9449@mea.homelinux.org>
	<20120125215730.GA15850@mea.homelinux.org> <878vkve44m.fsf@gnu.org>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <878vkve44m.fsf@gnu.org>
User-Agent: Mutt/1.5.18 (2008-05-17)
From: Mats Erik Andersson <mats.andersson@gisladisker.se>
X-SA-Exim-Connect-IP: <locally generated>
X-SA-Exim-Rcpt-To: ludo@gnu.org, bug-inetutils@gnu.org
X-SA-Exim-Mail-From: mats.andersson@gisladisker.se
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-SA-Exim-Version: 4.2.1 (built Wed, 25 Jun 2008 17:14:11 +0000)
X-SA-Exim-Scanned: Yes (on aun)
X-Originating-IP: 83.253.249.30
X-Scan-Result: No virus found in message 1RqEN5-0006CI-D5.
X-Scan-Signature: ch-smtp04.sth.basefarm.net 1RqEN5-0006CI-D5
	af8c4330cf18b95568934556bd7080d1
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 80.76.153.5
Cc: bug-inetutils@gnu.org
Subject: Re: [bug-inetutils] tests/syslogd.sh and /tmp
X-BeenThere: bug-inetutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Bug reports for the GNU Internet utilities <bug-inetutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-inetutils>
List-Post: <mailto:bug-inetutils@gnu.org>
List-Help: <mailto:bug-inetutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 26 Jan 2012 01:44:08 -0000

torsdag den 26 januari 2012 klockan 00:47 skrev Ludovic Courtès detta:
> Hi Mats,
> 
> Mats Erik Andersson <mats.andersson@gisladisker.se> skribis:
> 
> > I have now pushed a rewrite of "tests/syslogd.sh". It is also possible
> > to use it as a replacement in inetutils-1.9 and inetutils-1.9.1. There
> > is a full implementation of TMPDIR sensing with due value quoting.
> > The test script works correctly with a SVR4 Bourne shell as found in
> > OpenSolaris and OpenIndiana, in addition to have been tested with bash,
> > dash, mksh, pdksh, and busybox-ash.
> 
> Thanks for working on it!
> 
> > A message from NixOS as to the suitability of this modification would
> > be most welcome.
> 
> It can be seen at <http://hydra.nixos.org/jobset/gnu/inetutils-master>.
> It???s currently failing, but I???ll let you analyze the log.  ;-)

1) The test is running as UID=30003. Therefore it is unable to erect
   an INET listening socket at 514/udp, making this untestable.
   This disables two tests, but does not influence the failure.

2) The build root is at 

    /tmp/nix-build-irjj........-87b6-dirty/

   which in itself exceeds 108 character, thus making itself impossible
   as IU_TESTDIR for creation of a UNIX socket at which syslogd is to
   receive any message. The creation attempt by syslogd fails and logger(1)
   also fails:

     ../src/logger: UNIX socket name too long

3) The value of TMPDIR

   /tmp/nix-build-....-dirty.drv-0

   is luckily 84 characters long, so the use of IU_LONG_SOCKET is succeeding,
   but somehow syslogd(8) is not recording the complaint that IU_EXCESSIVE_SOCKET
   is too long, the message is not found in "$IU_TEMPDIR/messages". Momentarily
   I do not see why this escapes detection.

The most important conclusion is that NixOS must make an effort to reduce the
path length for the working directory. Presently it distroys every hope of
basing collision-free UNIX socket names on it. The second component in the
chroot path contains a randomised alphanumeric string of length 32. Shorten it!

Good luck!
> 
> Thanks,
> Ludo???.

-- 
Mats Erik Andersson, fil. dr
<mats.andersson@gisladisker.se>
2459 41E9 C420 3F6D F68B  2E88 F768 4541 F25B 5D41

Abonnerar på: debian-mentors, debian-devel-games, debian-perl,
              debian-ipv6, debian-qa


From MAILER-DAEMON Thu Jan 26 12:59:27 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1RqTbb-0002TO-2k
	for mharc-bug-inetutils@gnu.org; Thu, 26 Jan 2012 12:59:27 -0500
Received: from [140.186.70.92] (port=37209 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mats.andersson@gisladisker.se>) id 1RqTbV-0002Rb-Ru
	for bug-inetutils@gnu.org; Thu, 26 Jan 2012 12:59:25 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <mats.andersson@gisladisker.se>) id 1RqTbJ-0004iu-Ta
	for bug-inetutils@gnu.org; Thu, 26 Jan 2012 12:59:15 -0500
Received: from ch-smtp04.sth.basefarm.net ([80.76.153.5]:59507)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mats.andersson@gisladisker.se>)
	id 1RqTb7-0004dX-82; Thu, 26 Jan 2012 12:58:57 -0500
Received: from c83-253-249-30.bredband.comhem.se ([83.253.249.30]:49680
	helo=aun)
	by ch-smtp04.sth.basefarm.net with esmtps (TLSv1:AES256-SHA:256)
	(Exim 4.76) (envelope-from <mats.andersson@gisladisker.se>)
	id 1RqTaq-0002ky-D5; Thu, 26 Jan 2012 18:58:44 +0100
Received: from meand by aun with local (Exim 4.69)
	(envelope-from <mats.andersson@gisladisker.se>)
	id 1RqTao-00076p-3R; Thu, 26 Jan 2012 18:58:39 +0100
Date: Thu, 26 Jan 2012 18:58:38 +0100
To: Ludovic =?iso-8859-1?Q?Court=E8s?= <ludo@gnu.org>
Message-ID: <20120126175838.GA27206@mea.homelinux.org>
References: <87fwfdvv0n.fsf@gnu.org> <874nvs86j9.fsf@latte.josefsson.org>
	<20120119092337.GA28458@mea.homelinux.org>
	<877h0o6noo.fsf@latte.josefsson.org>
	<20120120225316.GA15975@mea.homelinux.org> <8739b7bgin.fsf@gnu.org>
	<20120122213648.GA9449@mea.homelinux.org>
	<20120125215730.GA15850@mea.homelinux.org> <878vkve44m.fsf@gnu.org>
	<20120126014320.GA17307@mea.homelinux.org>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <20120126014320.GA17307@mea.homelinux.org>
User-Agent: Mutt/1.5.18 (2008-05-17)
From: Mats Erik Andersson <mats.andersson@gisladisker.se>
X-SA-Exim-Connect-IP: <locally generated>
X-SA-Exim-Rcpt-To: ludo@gnu.org, bug-inetutils@gnu.org
X-SA-Exim-Mail-From: mats.andersson@gisladisker.se
Content-Type: text/plain; charset=us-ascii
X-SA-Exim-Version: 4.2.1 (built Wed, 25 Jun 2008 17:14:11 +0000)
X-SA-Exim-Scanned: Yes (on aun)
X-Originating-IP: 83.253.249.30
X-Scan-Result: No virus found in message 1RqTaq-0002ky-D5.
X-Scan-Signature: ch-smtp04.sth.basefarm.net 1RqTaq-0002ky-D5
	487e5bbbcea1d599695046b0e72cf8c0
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 80.76.153.5
Cc: bug-inetutils@gnu.org
Subject: Re: [bug-inetutils] tests/syslogd.sh and /tmp
X-BeenThere: bug-inetutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Bug reports for the GNU Internet utilities <bug-inetutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-inetutils>
List-Post: <mailto:bug-inetutils@gnu.org>
List-Help: <mailto:bug-inetutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 26 Jan 2012 17:59:25 -0000

torsdag den 26 januari 2012 klockan 02:43 skrev Mats Erik Andersson detta:
> 
> 2) The build root is at 
> 
>     /tmp/nix-build-irjj........-87b6-dirty/
> 
>    which in itself exceeds 108 character, thus making itself impossible
>    as IU_TESTDIR for creation of a UNIX socket at which syslogd is to
>    receive any message. The creation attempt by syslogd fails and logger(1)
>    also fails:
> 
>      ../src/logger: UNIX socket name too long
> 
> 3) The value of TMPDIR
> 
>    /tmp/nix-build-....-dirty.drv-0
> 
>    is luckily 84 characters long, so the use of IU_LONG_SOCKET is succeeding,
>    but somehow syslogd(8) is not recording the complaint that IU_EXCESSIVE_SOCKET
>    is too long, the message is not found in "$IU_TEMPDIR/messages". Momentarily
>    I do not see why this escapes detection.

Explanation: syslogd(8), or possibly logger(1), is truncating long message lines
before they are written to a message file. This means that the log entry

  'date' 'hostname' syslogd: UNIX socket name too long: 'the-very-long-name'

will get truncated at the end. On my system there was space for 63 characters only,
which is clearly less than the functional UNIX socket name length.

The build daemon at NixOS exceeds that by far, and since the test is presently
implemented, with grep(1) using a pattern that in the case of NixOS is in excess
of that upper bound on length, the script fails in detecting the failure!
Sic transit gloria.

Thus, the test report is consistent, but would benefit from slightly better
verbosity. I will mend this and shorten the pattern for grep(1) somewhat.

Regards,
  Mats E A


From MAILER-DAEMON Fri Jan 27 06:12:44 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1RqjjY-0007e1-Hy
	for mharc-bug-inetutils@gnu.org; Fri, 27 Jan 2012 06:12:44 -0500
Received: from eggs.gnu.org ([140.186.70.92]:55994)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mats.andersson@gisladisker.se>) id 1RqjjR-0007cV-Jl
	for bug-inetutils@gnu.org; Fri, 27 Jan 2012 06:12:41 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <mats.andersson@gisladisker.se>) id 1RqjjQ-00032P-KW
	for bug-inetutils@gnu.org; Fri, 27 Jan 2012 06:12:37 -0500
Received: from ch-smtp05.sth.basefarm.net ([80.76.153.6]:54287)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mats.andersson@gisladisker.se>)
	id 1RqjjQ-00032H-9m; Fri, 27 Jan 2012 06:12:36 -0500
Received: from c83-253-249-30.bredband.comhem.se ([83.253.249.30]:45658
	helo=aun)
	by ch-smtp05.sth.basefarm.net with esmtps (TLSv1:AES256-SHA:256)
	(Exim 4.76) (envelope-from <mats.andersson@gisladisker.se>)
	id 1Rqjj3-0005Cl-IX; Fri, 27 Jan 2012 12:12:18 +0100
Received: from meand by aun with local (Exim 4.69)
	(envelope-from <mats.andersson@gisladisker.se>)
	id 1Rqjir-0001KE-So; Fri, 27 Jan 2012 12:12:04 +0100
Date: Fri, 27 Jan 2012 12:12:01 +0100
To: bug-inetutils@gnu.org
Message-ID: <20120127111201.GA4863@mea.homelinux.org>
References: <874nvs86j9.fsf@latte.josefsson.org>
	<20120119092337.GA28458@mea.homelinux.org>
	<877h0o6noo.fsf@latte.josefsson.org>
	<20120120225316.GA15975@mea.homelinux.org> <8739b7bgin.fsf@gnu.org>
	<20120122213648.GA9449@mea.homelinux.org>
	<20120125215730.GA15850@mea.homelinux.org> <878vkve44m.fsf@gnu.org>
	<20120126014320.GA17307@mea.homelinux.org>
	<20120126175838.GA27206@mea.homelinux.org>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <20120126175838.GA27206@mea.homelinux.org>
User-Agent: Mutt/1.5.18 (2008-05-17)
From: Mats Erik Andersson <mats.andersson@gisladisker.se>
X-SA-Exim-Connect-IP: <locally generated>
X-SA-Exim-Rcpt-To: bug-inetutils@gnu.org, ludo@gnu.org
X-SA-Exim-Mail-From: mats.andersson@gisladisker.se
Content-Type: text/plain; charset=us-ascii
X-SA-Exim-Version: 4.2.1 (built Wed, 25 Jun 2008 17:14:11 +0000)
X-SA-Exim-Scanned: Yes (on aun)
X-Originating-IP: 83.253.249.30
X-Scan-Result: No virus found in message 1Rqjj3-0005Cl-IX.
X-Scan-Signature: ch-smtp05.sth.basefarm.net 1Rqjj3-0005Cl-IX
	bd825d979dc03930119eedbc52162de4
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 80.76.153.6
Cc: Ludovic =?iso-8859-1?Q?Court=E8s?= <ludo@gnu.org>
Subject: Re: [bug-inetutils] tests/syslogd.sh and /tmp
X-BeenThere: bug-inetutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Bug reports for the GNU Internet utilities <bug-inetutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-inetutils>
List-Post: <mailto:bug-inetutils@gnu.org>
List-Help: <mailto:bug-inetutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 27 Jan 2012 11:12:41 -0000

Dear all,

with an effort to sum up the present situation, I can close this
thread now:

The refinement of our test scripts in the last few days are
successful to the extent that the settings used by the continuous
integration system Hydra at NixOS is now passing the tests for

  i686-linux,
  x86_64-linux,
  i686-solaris,
  x86_64-freebsd.

The corresponding builds with Shishi fail due to unmet dependencies
(FreeBSD and Solaris) or due to "tests/tftp.sh" (GNU/Linux). The
latter is not providing verbose printout from our skripts so I
am not able to tell the reason, except that Inetd did not start;
probably the port was busy from a previous test.

All in all, we have a sound verification that we are doing well
in three different environments.

Regards,
  Mats


From MAILER-DAEMON Fri Jan 27 07:51:47 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1RqlHP-0005ff-Tx
	for mharc-bug-inetutils@gnu.org; Fri, 27 Jan 2012 07:51:47 -0500
Received: from eggs.gnu.org ([140.186.70.92]:44712)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <akfaew@jasminek.net>) id 1RqlHK-0005eQ-KS
	for bug-inetutils@gnu.org; Fri, 27 Jan 2012 07:51:46 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <akfaew@jasminek.net>) id 1RqlHJ-00074H-PB
	for bug-inetutils@gnu.org; Fri, 27 Jan 2012 07:51:42 -0500
Received: from jasminek.net ([156.17.4.19]:22056 helo=spock.jasminek.net)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <akfaew@jasminek.net>) id 1RqlHJ-00073y-Ec
	for bug-inetutils@gnu.org; Fri, 27 Jan 2012 07:51:41 -0500
Received: from localhost (1000@localhost [IPv6:::1])
	by spock.jasminek.net (OpenSMTPD) with ESMTP id df3e7595
	for <bug-inetutils@gnu.org>; Fri, 27 Jan 2012 13:51:38 +0100 (CET)
Date: Fri, 27 Jan 2012 13:51:38 +0100
From: Michal Mazurek <akfaew@jasminek.net>
To: bug-inetutils@gnu.org
Message-ID: <20120127125138.GA9040@akfaew.jasminek.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 156.17.4.19
Subject: [bug-inetutils] syslogd - tags
X-BeenThere: bug-inetutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Bug reports for the GNU Internet utilities <bug-inetutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-inetutils>
List-Post: <mailto:bug-inetutils@gnu.org>
List-Help: <mailto:bug-inetutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 27 Jan 2012 12:51:46 -0000

OpenBSD's syslogd has tags:

  The tag is a line beginning with !prog and each block will be associated
  with calls to syslog from that specific program.

For example:
!sudo
*.*                                                    /var/log/sudo

As I understand, inetutils-syslogd does not have this functionality. I
need to dump logs from a couple of programs to separate files - is this
possible?


Please CC me when replying, I am not subscribed to this list.

-- 
Michal Mazurek


From MAILER-DAEMON Fri Jan 27 08:22:20 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Rqlky-0004rc-BH
	for mharc-bug-inetutils@gnu.org; Fri, 27 Jan 2012 08:22:20 -0500
Received: from eggs.gnu.org ([140.186.70.92]:38359)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mats.andersson@gisladisker.se>) id 1Rqlkv-0004qH-Ix
	for bug-inetutils@gnu.org; Fri, 27 Jan 2012 08:22:18 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <mats.andersson@gisladisker.se>) id 1Rqlku-0002sC-HK
	for bug-inetutils@gnu.org; Fri, 27 Jan 2012 08:22:17 -0500
Received: from ch-smtp04.sth.basefarm.net ([80.76.153.5]:43485)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mats.andersson@gisladisker.se>) id 1Rqlku-0002rz-53
	for bug-inetutils@gnu.org; Fri, 27 Jan 2012 08:22:16 -0500
Received: from c83-253-249-30.bredband.comhem.se ([83.253.249.30]:38588
	helo=aun)
	by ch-smtp04.sth.basefarm.net with esmtps (TLSv1:AES256-SHA:256)
	(Exim 4.76) (envelope-from <mats.andersson@gisladisker.se>)
	id 1Rqlke-0002aA-Ec; Fri, 27 Jan 2012 14:22:02 +0100
Received: from meand by aun with local (Exim 4.69)
	(envelope-from <mats.andersson@gisladisker.se>)
	id 1RqlkZ-0001dr-Ow; Fri, 27 Jan 2012 14:21:56 +0100
Date: Fri, 27 Jan 2012 14:21:55 +0100
From: Mats Erik Andersson <gnu@gisladisker.se>
To: Michal Mazurek <akfaew@jasminek.net>
Message-ID: <20120127132155.GA6206@mea.homelinux.org>
References: <20120127125138.GA9040@akfaew.jasminek.net>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <20120127125138.GA9040@akfaew.jasminek.net>
User-Agent: Mutt/1.5.18 (2008-05-17)
X-SA-Exim-Connect-IP: <locally generated>
X-SA-Exim-Rcpt-To: akfaew@jasminek.net, bug-inetutils@gnu.org
X-SA-Exim-Mail-From: mats.andersson@gisladisker.se
Content-Type: text/plain; charset=us-ascii
X-SA-Exim-Version: 4.2.1 (built Wed, 25 Jun 2008 17:14:11 +0000)
X-SA-Exim-Scanned: Yes (on aun)
X-Originating-IP: 83.253.249.30
X-Scan-Result: No virus found in message 1Rqlke-0002aA-Ec.
X-Scan-Signature: ch-smtp04.sth.basefarm.net 1Rqlke-0002aA-Ec
	269c03b880c28bb3b880127bda7280c2
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 80.76.153.5
Cc: bug-inetutils@gnu.org
Subject: Re: [bug-inetutils] syslogd - tags
X-BeenThere: bug-inetutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Bug reports for the GNU Internet utilities <bug-inetutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-inetutils>
List-Post: <mailto:bug-inetutils@gnu.org>
List-Help: <mailto:bug-inetutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 27 Jan 2012 13:22:18 -0000

fredag den 27 januari 2012 klockan 13:51 skrev Michal Mazurek detta:
> OpenBSD's syslogd has tags:
> 
>   The tag is a line beginning with !prog and each block will be associated
>   with calls to syslog from that specific program.
> 
> For example:
> !sudo
> *.*                                                    /var/log/sudo
> 
> As I understand, inetutils-syslogd does not have this functionality. I
> need to dump logs from a couple of programs to separate files - is this
> possible?

# /etc/sudoers

logfile /var/log/sudo
!syslog

-------

# /etc/sudoers

syslog local5


# /etc/syslog.conf

local5.*	/var/log/sudo


From MAILER-DAEMON Fri Jan 27 12:25:01 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1RqpXp-0000Xs-Sj
	for mharc-bug-inetutils@gnu.org; Fri, 27 Jan 2012 12:25:01 -0500
Received: from eggs.gnu.org ([140.186.70.92]:58807)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mats.andersson@gisladisker.se>) id 1RqpXm-0000X1-Op
	for bug-inetutils@gnu.org; Fri, 27 Jan 2012 12:24:59 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <mats.andersson@gisladisker.se>) id 1RqpXl-0005mX-OX
	for bug-inetutils@gnu.org; Fri, 27 Jan 2012 12:24:58 -0500
Received: from ch-smtp04.sth.basefarm.net ([80.76.153.5]:41255)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mats.andersson@gisladisker.se>) id 1RqpXl-0005mP-EO
	for bug-inetutils@gnu.org; Fri, 27 Jan 2012 12:24:57 -0500
Received: from c83-253-249-30.bredband.comhem.se ([83.253.249.30]:35006
	helo=aun)
	by ch-smtp04.sth.basefarm.net with esmtps (TLSv1:AES256-SHA:256)
	(Exim 4.76) (envelope-from <mats.andersson@gisladisker.se>)
	id 1RqpWu-00033c-Ej
	for bug-inetutils@gnu.org; Fri, 27 Jan 2012 18:24:09 +0100
Received: from meand by aun with local (Exim 4.69)
	(envelope-from <mats.andersson@gisladisker.se>) id 1RqpWs-0002CK-CX
	for bug-inetutils@gnu.org; Fri, 27 Jan 2012 18:24:03 +0100
Date: Fri, 27 Jan 2012 18:24:02 +0100
To: bug-inetutils@gnu.org
Message-ID: <20120127172402.GA8312@mea.homelinux.org>
MIME-Version: 1.0
Content-Disposition: inline
User-Agent: Mutt/1.5.18 (2008-05-17)
From: Mats Erik Andersson <mats.andersson@gisladisker.se>
X-SA-Exim-Connect-IP: <locally generated>
X-SA-Exim-Rcpt-To: bug-inetutils@gnu.org
X-SA-Exim-Mail-From: mats.andersson@gisladisker.se
Content-Type: text/plain; charset=us-ascii
X-SA-Exim-Version: 4.2.1 (built Wed, 25 Jun 2008 17:14:11 +0000)
X-SA-Exim-Scanned: Yes (on aun)
X-Originating-IP: 83.253.249.30
X-Scan-Result: No virus found in message 1RqpWu-00033c-Ej.
X-Scan-Signature: ch-smtp04.sth.basefarm.net 1RqpWu-00033c-Ej
	420bb81a0d78c9ffd725a3963e2e20ae
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 80.76.153.5
Subject: [bug-inetutils] Lib dependencies in "src/".
X-BeenThere: bug-inetutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Bug reports for the GNU Internet utilities <bug-inetutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-inetutils>
List-Post: <mailto:bug-inetutils@gnu.org>
List-Help: <mailto:bug-inetutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 27 Jan 2012 17:24:59 -0000

Dear all,

anyone trying to build inetutils-1.9.1, or from Git head, using

    ./configure --with-pam --with-wrap --with-shishi

will find that every binary in "src/" is asking for

	linux-gate.so.1 =>  (0xb7706000)
	libshishi.so.0 => /usr/lib/libshishi.so.0 (0xb76ad000)
	libcrypt.so.1 => /lib/i686/cmov/libcrypt.so.1 (0xb767b000)
	libutil.so.1 => /lib/i686/cmov/libutil.so.1 (0xb7676000)
	libdl.so.2 => /lib/i686/cmov/libdl.so.2 (0xb7672000)
	libresolv.so.2 => /lib/i686/cmov/libresolv.so.2 (0xb765e000)
	libnsl.so.1 => /lib/i686/cmov/libnsl.so.1 (0xb7647000)
	libc.so.6 => /lib/i686/cmov/libc.so.6 (0xb7501000)
	librt.so.1 => /lib/i686/cmov/librt.so.1 (0xb74f7000)
	libtasn1.so.3 => /usr/lib/libtasn1.so.3 (0xb74e7000)
	libgnutls.so.26 => /usr/lib/libgnutls.so.26 (0xb744f000)
	libgcrypt.so.11 => /usr/lib/libgcrypt.so.11 (0xb73db000)
	libgpg-error.so.0 => /usr/lib/libgpg-error.so.0 (0xb73d7000)
	libidn.so.11 => /usr/lib/libidn.so.11 (0xb73a5000)
	/lib/ld-linux.so.2 (0xb7707000)
	libpthread.so.0 => /lib/i686/cmov/libpthread.so.0 (0xb738c000)
	libz.so.1 => /usr/lib/libz.so.1 (0xb7378000)

This include hostname, inetd, logger, syslogd, tftp, and tftpd! Constrast
this to a correctly reduced inetd:

	linux-gate.so.1 =>  (0xb7710000)
	libdl.so.2 => /lib/i686/cmov/libdl.so.2 (0xb76fb000)
	libresolv.so.2 => /lib/i686/cmov/libresolv.so.2 (0xb76e7000)
	libnsl.so.1 => /lib/i686/cmov/libnsl.so.1 (0xb76cf000)
	libc.so.6 => /lib/i686/cmov/libc.so.6 (0xb7589000)
	/lib/ld-linux.so.2 (0xb7711000)

It is our responsibility that this situation exists, the reason being
that "src/" contains basic utilities like inetd, logger, syslogd, but
also other composites like rlogind, rshd, and rcp which are using
kerberos support and crypto support. We must attend to this mess,
and I hope to be excused! I dare claim that the above situation is
the main reason why the automated build at NixOS, with libbshishi
activated, grinds to a mysterious halt when launching inetd from
"tests/tftd.sh".


Best regards,
  Mats


From MAILER-DAEMON Sat Jan 28 22:53:29 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1RrLpZ-0002Tq-Kn
	for mharc-bug-inetutils@gnu.org; Sat, 28 Jan 2012 22:53:29 -0500
Received: from eggs.gnu.org ([140.186.70.92]:54869)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <guillemj@ono.com>) id 1RrLpW-0002SI-OG
	for bug-inetutils@gnu.org; Sat, 28 Jan 2012 22:53:27 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <guillemj@ono.com>) id 1RrLpV-0001it-1X
	for bug-inetutils@gnu.org; Sat, 28 Jan 2012 22:53:26 -0500
Received: from smtp13.ono.com ([62.42.230.16]:3381 helo=resmaa13.ono.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <guillemj@ono.com>) id 1RrLpU-0001iN-Kb
	for bug-inetutils@gnu.org; Sat, 28 Jan 2012 22:53:24 -0500
Received: from gaara.hadrons.org (85.136.45.65) by resmaa13.ono.com (8.5.113)
	(authenticated as guillemj@ono.com)
	id 4EFDA606005BD309 for bug-inetutils@gnu.org;
	Sun, 29 Jan 2012 04:53:21 +0100
Received: from guillem by gaara.hadrons.org with local (Exim 4.77)
	(envelope-from <guillemj@ono.com>) id 1RrLpP-0004Dv-DE
	for bug-inetutils@gnu.org; Sun, 29 Jan 2012 04:53:19 +0100
Date: Sun, 29 Jan 2012 04:53:04 +0100
From: Guillem Jover <guillem@hadrons.org>
To: bug-inetutils@gnu.org
Message-ID: <20120129035304.GA16196@gaara.hadrons.org>
References: <20120127172402.GA8312@mea.homelinux.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20120127172402.GA8312@mea.homelinux.org>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older,
	4)
X-Received-From: 62.42.230.16
Subject: Re: [bug-inetutils] Lib dependencies in "src/".
X-BeenThere: bug-inetutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Bug reports for the GNU Internet utilities <bug-inetutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-inetutils>
List-Post: <mailto:bug-inetutils@gnu.org>
List-Help: <mailto:bug-inetutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-inetutils>,
	<mailto:bug-inetutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 29 Jan 2012 03:53:28 -0000

Hi!

On Fri, 2012-01-27 at 18:24:02 +0100, Mats Erik Andersson wrote:
> It is our responsibility that this situation exists, the reason being
> that "src/" contains basic utilities like inetd, logger, syslogd, but
> also other composites like rlogind, rshd, and rcp which are using
> kerberos support and crypto support. We must attend to this mess,
> and I hope to be excused!

I provided a patch some time ago that fixed this among other things, but
it got dismissed. I'm attaching a targetted fix, which I hope will be
understood this time. I'll try to provide a ChangeLog entry later on.

thanks,
guillem


commit 798776bd8ce3435d3129953d0a257fa43b0dde4b
Author: Guillem Jover <guillem@hadrons.org>
Date:   Wed Oct 19 18:25:41 2011 +0200

    Remove unneeded shared library dependencies

diff --git a/src/Makefile.am b/src/Makefile.am
index 2666597..729dfc0 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -21,6 +21,8 @@
 inetdaemondir = @inetdaemondir@
 
 # Initialise variables.
+LDADD = $(iu_LIBRARIES) $(LIBUTIL)
+
 inetdaemon_PROGRAMS =
 bin_PROGRAMS =
 EXTRA_PROGRAMS =
@@ -36,6 +38,7 @@ EXTRA_PROGRAMS += logger
 
 bin_PROGRAMS += @rcp_BUILD@
 rcp_SOURCES = rcp.c
+rcp_LDADD = $(LDADD) $(LIBAUTH)
 EXTRA_PROGRAMS += rcp
 
 bin_PROGRAMS += @rexec_BUILD@
@@ -44,10 +47,12 @@ EXTRA_PROGRAMS += rexec
 
 bin_PROGRAMS += @rlogin_BUILD@
 rlogin_SOURCES = rlogin.c
+rlogin_LDADD = $(LDADD) $(LIBAUTH)
 EXTRA_PROGRAMS += rlogin
 
 bin_PROGRAMS += @rsh_BUILD@
 rsh_SOURCES = rsh.c
+rsh_LDADD = $(LDADD) $(LIBAUTH)
 EXTRA_PROGRAMS += rsh
 
 bin_PROGRAMS += @tftp_BUILD@
@@ -56,6 +61,7 @@ EXTRA_PROGRAMS += tftp
 
 bin_PROGRAMS += @traceroute_BUILD@
 traceroute_SOURCES = traceroute.c
+traceroute_LDADD = $(top_builddir)/libicmp/libicmp.a $(LDADD)
 EXTRA_PROGRAMS += traceroute
 
 inetdaemon_PROGRAMS += @inetd_BUILD@
@@ -64,14 +70,17 @@ EXTRA_PROGRAMS += inetd
 
 inetdaemon_PROGRAMS += @rexecd_BUILD@
 rexecd_SOURCES = rexecd.c
+rexecd_LDADD = $(LDADD) $(LIBCRYPT)
 EXTRA_PROGRAMS += rexecd
 
 inetdaemon_PROGRAMS += @rlogind_BUILD@
 rlogind_SOURCES = rlogind.c
+rlogind_LDADD = $(LDADD) $(LIBAUTH)
 EXTRA_PROGRAMS += rlogind
 
 inetdaemon_PROGRAMS += @rshd_BUILD@
 rshd_SOURCES = rshd.c
+rshd_LDADD = $(LDADD) $(LIBAUTH)
 EXTRA_PROGRAMS += rshd
 
 inetdaemon_PROGRAMS += @syslogd_BUILD@
@@ -84,12 +93,11 @@ EXTRA_PROGRAMS += tftpd
 
 inetdaemon_PROGRAMS += @uucpd_BUILD@
 uucpd_SOURCES = uucpd.c
+uucpd_LDADD = $(LDADD) $(LIBCRYPT)
 EXTRA_PROGRAMS += uucpd
 
 INCLUDES = $(iu_INCLUDES) -I$(top_srcdir)/libicmp
 
-LDADD = $(iu_LIBRARIES) $(top_builddir)/libicmp/libicmp.a $(LIBAUTH) $(LIBCRYPT) $(LIBUTIL)
-
 AM_CPPFLAGS = $(PATHDEF_BSHELL) $(PATHDEF_CONSOLE) $(PATHDEF_CP) $(PATHDEF_DEFPATH) $(PATHDEF_DEV) $(PATHDEF_INETDCONF) $(PATHDEF_INETDDIR) $(PATHDEF_INETDPID) $(PATHDEF_KLOG) $(PATHDEF_LOG) $(PATHDEF_LOGCONF) $(PATHDEF_LOGCONFD) $(PATHDEF_LOGIN) $(PATHDEF_LOGPID) $(PATHDEF_NOLOGIN) $(PATHDEF_RLOGIN) $(PATHDEF_RSH) $(PATHDEF_TTY) $(PATHDEF_UTMP) $(PATHDEF_UUCICO)
 
 SUIDMODE = -o root -m 4775


