test failure for openssh-SNAP-20051125.tar.gz

John Gatewood Ham zappaman at buraphalinux.org
Mon Nov 28 01:57:03 EST 2005


Darren Tucker,

    Yes your patch works also.

Thank you,

JGH

On Sun, 27 Nov 2005, Darren Tucker wrote:

> On Sat, Nov 26, 2005 at 01:03:51AM +0700, John Gatewood Ham wrote:
>> head: `-2000' option is obsolete; use `-n 2000'
> [...]
>
> Sigh.  If anyone is ever talking to the GNU folks responsible for this,
> please point out that this breakage is unnecessary.  It's even covered
> in the POSIX.1 FAQ (Q 15):
> http://www.opengroup.org/austin/papers/posix_faq.html
>
>> The attached patch solved this problem for my system.
>
> Thanks.  Does this slightly simpler patch also solve it?  (no export
> and no subshell)
>
> Index: yes-head.sh
> ===================================================================
> RCS file: /var/cvs/openssh/regress/yes-head.sh,v
> retrieving revision 1.3
> diff -u -p -r1.3 yes-head.sh
> --- yes-head.sh	12 Sep 2003 20:21:14 -0000	1.3
> +++ yes-head.sh	27 Nov 2005 12:34:13 -0000
> @@ -4,7 +4,7 @@
> tid="yes pipe head"
>
> for p in 1 2; do
> -	lines=`${SSH} -$p -F $OBJ/ssh_proxy thishost 'sh -c "while true;do echo yes;done | head -2000"' | (sleep 3 ; wc -l)`
> +	lines=`${SSH} -$p -F $OBJ/ssh_proxy thishost 'sh -c "while true;do echo yes;done | _POSIX2_VERSION=199209 head -2000"' | (sleep 3 ; wc -l)`
> 	if [ $? -ne 0 ]; then
> 		fail "yes|head test failed"
> 		lines = 0;
>




More information about the openssh-unix-dev mailing list