From b1a8777f3ac863890bb9d324866d1a78c42c6597 Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Mon, 28 Nov 2005 16:41:03 +1100 Subject: [PATCH] - (dtucker) [regress/yes-head.sh] Work around breakage caused by some versions of GNU head. Based on patch from zappaman at buraphalinux.org --- ChangeLog | 6 +++++- regress/yes-head.sh | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5fd224aef..fb7004a94 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +20051128 + - (dtucker) [regress/yes-head.sh] Work around breakage caused by some + versions of GNU head. Based on patch from zappaman at buraphalinux.org + 20051126 - (dtucker) [configure.ac] Bug #1126: AIX 5.2 and 5.3 (and presumably newer, when they're available) need the real UID set otherwise pam_chauthtok will @@ -3358,4 +3362,4 @@ - (djm) Trim deprecated options from INSTALL. Mention UsePAM - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu -$Id: ChangeLog,v 1.4008 2005/11/26 11:24:09 dtucker Exp $ +$Id: ChangeLog,v 1.4009 2005/11/28 05:41:03 dtucker Exp $ diff --git a/regress/yes-head.sh b/regress/yes-head.sh index 17a4d0dd4..a8e6bc800 100644 --- a/regress/yes-head.sh +++ b/regress/yes-head.sh @@ -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;